From 6705dcac4a9d37ad65ac287a0e2bfe4e6cb8cc98 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sun, 19 Jan 2025 15:42:03 -0800 Subject: wayland: wip waybar config --- roles/home/desktop/waybar.nix | 66 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) (limited to 'roles/home/desktop/waybar.nix') diff --git a/roles/home/desktop/waybar.nix b/roles/home/desktop/waybar.nix index 68fad79..2fc63ac 100644 --- a/roles/home/desktop/waybar.nix +++ b/roles/home/desktop/waybar.nix @@ -2,6 +2,70 @@ { programs.waybar = { - + settings = { + main = { + layer = "top"; + position = "top"; + height = 32; + output = [ "DP-3" ]; + + modules-left = [ "cpu" "memory" "mpris" ]; + modules-center = [ "sway/workspaces" ]; + modules-right = [ "network" "disk" "keyboard-state" "pulseaudio" "clock" ]; + + # Left + "cpu" = { + interval = 5; + format = "{usage}% {avg_frequency} GHz"; + }; + + "memory" = { + interval = 5; + format = "{used} GiB"; + tooltip-format = "{used}/{total} GiB ({percentage}%)"; + }; + + "mpris" = { + format = "󰎄 {status_icon} {title} - {artist}"; + tooltip-format = "[{status}] {dynamic} ({player})"; + status-icons = { + playing = "󰏤"; + paused = "󰐊"; + stopped = "󰐊"; + }; + }; + + # Center + "sway/workspaces" = { + disable-scroll = true; + all-outputs = true; + + format = "{icon}"; + format-icons = { + "0:Main" = "󱄅"; + "1:Terminal" = ""; + "2:Browser" = "󰈹"; + "3:Chat" = "󰙯"; + "4:Gaming" = "󰓓"; + + "5" = "󰎱"; + "6" = "󰎳"; + "7" = "󰎶"; + + "8:Meow" = "󰄛"; + "9:Music" = "󰲸"; + "10:Misc" = "󰁴"; + }; + }; + + # Right + "network" = { + interval = 10; + format-ethernet = "󰈀 {ifname}"; + format-wifi = "{icon} {ifname}"; + format-icons = [ "󰤯" "󰤟" "󰤢" "󰤥" "󰤨" ]; + }; + }; + }; }; } \ No newline at end of file -- cgit v1.2.3