112 lines
2.8 KiB
Nix
Raw Normal View History

2020-02-07 03:09:25 +04:00
{ pkgs, config, lib, ... }:
with rec {
inherit (config) device deviceSpecific;
};
with deviceSpecific;
with import ../../../support.nix { inherit 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 {
home-manager.users.alukard.xsession.windowManager.i3.extraConfig = ''
bar {
id top
2020-08-10 01:17:22 +04:00
font pango:${thm.iconFont} 11, ${thm.fontMono} 11, ${thm.fallbackFontMono} 11
2020-02-07 03:09:25 +04:00
mode dock
hidden_state hide
position top
status_command ${pkgs.i3status-rust}/bin/i3status-rs $HOME/.config/i3status-rust/config.toml
workspace_buttons yes
strip_workspace_numbers no
tray_output primary
colors {
2020-08-10 01:17:22 +04:00
background #${thm.base00-hex}
separator #${thm.base01-hex}
statusline #${thm.base04-hex}
focused_workspace #${thm.base00-hex} #${thm.base00-hex} #${thm.base0D-hex}
active_workspace #${thm.base00-hex} #${thm.base03-hex} #${thm.base00-hex}
inactive_workspace #${thm.base00-hex} #${thm.base01-hex} #${thm.base05-hex}
urgent_workspace #${thm.base00-hex} #${thm.base0A-hex} #${thm.base00-hex}
binding_mode #${thm.base00-hex} #${thm.base0A-hex} #${thm.base00-hex}
2020-02-07 03:09:25 +04:00
}
}
'';
2020-02-12 02:35:54 +04:00
home-manager.users.alukard.xdg.configFile."i3status-rust/config.toml".text = lib.concatStrings [''
2020-08-10 01:17:22 +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}"
[icons]
name = "material"
2020-02-07 03:09:25 +04:00
[[block]]
block = "net"
2020-02-12 02:35:54 +04:00
''
(if device == "Dell-Laptop" then ''
2020-02-07 03:09:25 +04:00
device = "wlo1"
2020-02-12 02:35:54 +04:00
'' else "")
(if device == "AMD-Workstation" then ''
device = "enp9s0"
'' else "")
(if isLaptop then ''
2020-02-07 03:09:25 +04:00
[[block]]
block = "battery"
interval = 10
format = "{percentage}% {time}"
[[block]]
block = "backlight"
2020-02-12 02:35:54 +04:00
'' else "")
''
2020-02-07 03:09:25 +04:00
[[block]]
block = "custom"
command = "${scripts.weather}"
interval = 600
[[block]]
block = "music"
buttons = ["play", "next"]
[[block]]
block = "sound"
2020-02-10 20:06:45 +04:00
driver = "pulseaudio"
2020-02-07 03:09:25 +04:00
[[block]]
block = "cpu"
interval = 1
format = "{utilization}% {frequency}GHz"
[[block]]
block = "memory"
display_type = "memory"
format_mem = "{MAg}GiB"
format_swap = "{SFg}GiB"
[[block]]
block = "custom"
command = "${scripts.df}"
interval = 60
[[block]]
block = "custom"
command = "${scripts.vpn-status}"
2020-02-10 06:08:03 +04:00
interval = 60
2020-02-07 03:09:25 +04:00
[[block]]
block = "time"
2020-02-10 06:08:03 +04:00
interval = 1
2020-02-07 03:09:25 +04:00
format = "%a %Y/%m/%d %T"
2020-02-12 02:35:54 +04:00
''];
2020-02-07 03:09:25 +04:00
}