189 lines
4.8 KiB
Nix
Raw Normal View History

2020-02-07 03:09:25 +04:00
{ pkgs, config, lib, ... }:
2020-08-10 01:17:22 +04:00
let
scripts = import ./scripts pkgs config;
thm = config.lib.base16.theme;
2020-02-07 03:09:25 +04:00
in {
2020-08-15 19:36:16 +04:00
home-manager.users.alukard = {
xsession.windowManager.i3.config.bars = [{
id = "default";
2021-06-14 23:31:09 +03:00
# fonts = [ "${thm.iconFont} Solid ${thm.microFontSize}" "${thm.fallbackIcon} ${thm.microFontSize}" "${thm.powerlineFont} SemiBold ${thm.microFontSize}" ];
fonts = {
2021-06-16 05:30:04 +03:00
names = [ "${thm.powerlineFont}" "${thm.iconFont}" "${thm.fallbackIcon}" ];
style = "Regular";
2021-06-14 23:31:09 +03:00
# size = thm.microFontSize;
size = 10.0;
};
2020-08-15 19:36:16 +04:00
position = "top";
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs";
workspaceNumbers = false;
colors = {
background = "#${thm.base00-hex}";
statusline = "#${thm.base02-hex}";
separator = "#${thm.base04-hex}";
focusedWorkspace = {
background = "#${thm.base00-hex}";
border = "#${thm.base00-hex}";
text = "#${thm.base0D-hex}";
};
activeWorkspace = {
background = "#${thm.base03-hex}";
border = "#${thm.base00-hex}";
text = "#${thm.base00-hex}";
};
inactiveWorkspace = {
background = "#${thm.base01-hex}";
border = "#${thm.base00-hex}";
text = "#${thm.base05-hex}";
};
urgentWorkspace = {
background = "#${thm.base00-hex}";
border = "#${thm.base0A-hex}";
text = "#${thm.base05-hex}";
};
bindingMode = {
background = "#${thm.base0A-hex}";
border = "#${thm.base00-hex}";
text = "#${thm.base00-hex}";
};
};
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
}];
2020-08-10 01:17:22 +04:00
2020-08-15 19:36:16 +04:00
xdg.configFile."i3status-rust/config.toml".text = lib.concatStrings [''
2020-08-10 01:17:22 +04:00
2020-08-15 19:36:16 +04:00
[theme]
name = "solarized-dark"
[theme.overrides]
idle_bg = "#${thm.base00-hex}"
idle_fg = "#${thm.base05-hex}"
info_bg = "#${thm.base0C-hex}"
info_fg = "#${thm.base00-hex}"
good_bg = "#${thm.base0B-hex}"
good_fg = "#${thm.base00-hex}"
warning_bg = "#${thm.base0A-hex}"
warning_fg = "#${thm.base00-hex}"
critical_bg = "#${thm.base08-hex}"
critical_fg = "#${thm.base00-hex}"
2020-08-11 02:38:02 +04:00
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
# Material Icons Cheatsheet [https://shanfan.github.io/material-icons-cheatsheet/]
# Font Awesome Cheatsheet [https://fontawesome.com/icons?d=gallery&m=free]
[icons]
name = "awesome5"
[icons.overrides]
backlight_empty = " 🌑 "
backlight_full = " 🌕 "
backlight_partial1 = " 🌘 "
backlight_partial2 = " 🌗 "
backlight_partial3 = " 🌖 "
# bat_charging = ""
# bat_discharging = ""
# bat_full = ""
# bat = ""
# cogs = ""
2021-06-14 23:31:09 +03:00
cpu = ""
2020-08-15 19:36:16 +04:00
# gpu = ""
# mail = ""
2021-06-14 23:31:09 +03:00
memory_mem = ""
memory_swap = ""
2020-08-15 19:36:16 +04:00
music_next = ""
music_pause = ""
music_play = ""
music_prev = ""
2021-06-14 23:31:09 +03:00
music = ""
net_down = ""
net_up = ""
### net_up = ""
2020-08-15 19:36:16 +04:00
net_wired = ""
net_wireless = ""
2021-06-14 23:31:09 +03:00
### net_wired = ""
### net_wireless = ""
2020-08-15 19:36:16 +04:00
# ping = ""
# thermometer = ""
# time = ""
# toggle_off = ""
# toggle_on = ""
# update = ""
# uptime = ""
2021-06-14 23:31:09 +03:00
volume_empty = ""
volume_full = ""
volume_half = ""
volume_muted = ""
2020-08-15 19:36:16 +04:00
# weather_clouds = ""
# weather_default = ""
# weather_rain = ""
# weather_snow = ""
# weather_sun = ""
# weather_thunder = ""
# xrandr = ""
2020-02-07 03:09:25 +04:00
2021-06-29 22:27:50 +03:00
# [[block]]
# block = "music"
# buttons = ["play", "next"]
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
[[block]]
block = "net"
''
2021-02-07 02:38:11 +03:00
(if config.device == "Dell-Laptop" then ''
2020-08-15 19:36:16 +04:00
device = "wlo1"
'' else "")
2021-02-07 02:38:11 +03:00
(if config.device == "AMD-Workstation" then ''
2020-08-15 19:36:16 +04:00
device = "enp9s0"
'' else "")
2021-02-07 02:38:11 +03:00
(if config.deviceSpecific.isLaptop then ''
2020-08-15 19:36:16 +04:00
[[block]]
block = "battery"
interval = 10
2021-06-16 05:30:04 +03:00
format = "{percentage} {time}"
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
[[block]]
block = "backlight"
'' else "")
''
[[block]]
block = "custom"
command = "${scripts.weather}"
interval = 600
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
[[block]]
block = "sound"
driver = "auto"
2021-06-14 23:31:09 +03:00
''
(if config.device == "Dell-Laptop" then ''
[[block]]
block = "custom"
command = "${scripts.cputemp}"
interval = 5
2020-02-07 03:09:25 +04:00
2021-06-14 23:31:09 +03:00
'' else "")
''
2020-08-15 19:36:16 +04:00
[[block]]
block = "cpu"
interval = 1
2021-06-16 05:30:04 +03:00
format = "{utilization} {frequency}"
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
[[block]]
block = "memory"
display_type = "memory"
2021-06-14 23:31:09 +03:00
format_mem = "{mem_avail;G}"
format_swap = "{swap_free;G}"
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
[[block]]
block = "custom"
command = "${scripts.df}"
interval = 60
2020-02-07 03:09:25 +04:00
2020-08-15 19:36:16 +04:00
[[block]]
block = "custom"
command = "${scripts.vpn-status}"
interval = 60
[[block]]
block = "time"
interval = 1
format = "%a %Y/%m/%d %T"
''];
};
}