88 lines
2.3 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; };
let scripts = import ./scripts pkgs config;
in {
home-manager.users.alukard.xsession.windowManager.i3.extraConfig = ''
bar {
id top
font pango:Roboto Mono 11, FontAwesome 11
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 {
background ${config.themes.colors.bg}
statusline ${config.themes.colors.fg}
separator ${config.themes.colors.alt}
focused_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.blue}
active_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.green}
inactive_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.fg}
urgent_workspace ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.orange}
binding_mode ${config.themes.colors.bg} ${config.themes.colors.bg} ${config.themes.colors.yellow}
}
}
'';
home-manager.users.alukard.xdg.configFile."i3status-rust/config.toml".text = ''
theme = "slick"
icons = "awesome"
[[block]]
block = "net"
'' + lib.optionals (device == "Dell-Laptop") ''
device = "wlo1"
'' + lib.optionals (isLaptop) ''
[[block]]
block = "battery"
interval = 10
format = "{percentage}% {time}"
[[block]]
block = "backlight"
'' + ''
[[block]]
block = "custom"
command = "${scripts.weather}"
interval = 600
[[block]]
block = "music"
buttons = ["play", "next"]
[[block]]
block = "sound"
[[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"
'';
}