diff options
author | sefidel <contact@sefidel.net> | 2022-01-10 00:10:38 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-01-10 00:29:59 +0900 |
commit | 6bb2a7673480b17638a69e5c99f7fd21c7767c7d (patch) | |
tree | 6b57e5eb6f2781653dec61031197702fcd2db680 /home/modules/profiles/base/config/waybar-settings.nix | |
parent | 55ade20fc966a4774762dbf9f6a0fdfb58d2155d (diff) | |
download | nixrc-6bb2a7673480b17638a69e5c99f7fd21c7767c7d.tar.gz nixrc-6bb2a7673480b17638a69e5c99f7fd21c7767c7d.zip |
home/base: better bar design
Diffstat (limited to 'home/modules/profiles/base/config/waybar-settings.nix')
-rw-r--r-- | home/modules/profiles/base/config/waybar-settings.nix | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/home/modules/profiles/base/config/waybar-settings.nix b/home/modules/profiles/base/config/waybar-settings.nix index 2917e00..12fe8c8 100644 --- a/home/modules/profiles/base/config/waybar-settings.nix +++ b/home/modules/profiles/base/config/waybar-settings.nix @@ -1,15 +1,17 @@ +{ neotheme }: + +with neotheme.colors; { layer = "bottom"; position = "top"; height = 21; - modules-left = [ "pulseaudio" "cpu" "memory" ]; + modules-left = [ "pulseaudio" "custom/seperator" "cpu" "custom/seperator" "memory" ]; modules-center = [ "sway/workspaces" ]; modules-right = [ "clock" ]; modules = { "sway/workspaces" = { all-outputs = true; - persistent_workspaces = { "α" = [ ]; "β" = [ ]; @@ -26,23 +28,29 @@ "clock" = { interval = 10; - format = "{: %a %d %H:%M}"; + format = "<span foreground='#${color5}'></span> {:%A, %b %d %H:%M}"; }; "cpu" = { interval = 5; - format = " {usage:3}%"; + format = "<span foreground='#${color2}'></span> {usage:3}%"; }; "pulseaudio" = { - format = "{icon} {volume}%"; + format = "<span foreground='#${color4}'>{icon}</span> {volume}%"; format-muted = "ﱝ Muted"; format-icons.default = [ " " " " " " ]; }; "memory" = { interval = 5; - format = " {used:0.2f}GiB"; + format = "<span foreground='#${color3}'></span> {used:0.2f}GiB"; + }; + + "custom/seperator" = { + format = "|"; + interval = "once"; + tooltip = false; }; }; } |