From 89108cd4dbab075ef353316ff7a284b3335a5cf1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 16 Feb 2022 16:29:22 -0800 Subject: swaybar: keep it simple for now --- users/fcuny/desktop/sway/waybar.nix | 53 +++++++++++++++---------------------- 1 file changed, 22 insertions(+), 31 deletions(-) (limited to 'users/fcuny') diff --git a/users/fcuny/desktop/sway/waybar.nix b/users/fcuny/desktop/sway/waybar.nix index f71e914..13ee9eb 100644 --- a/users/fcuny/desktop/sway/waybar.nix +++ b/users/fcuny/desktop/sway/waybar.nix @@ -4,35 +4,26 @@ programs.waybar = { enable = true; systemd.enable = true; - - settings = [{ - layer = "top"; - position = "top"; - height = 30; - modules-left = [ "sway/workspaces" ]; - modules-right = [ "custom/clock" ]; - modules = { - "sway/workspaces" = { - disable-scroll = true; - all-outputs = true; - }; - - "custom/clock" = { - interval = 30; - format = "{%a %b %d %H:%M}"; - }; - }; - }]; - - style = '' - * { - border: none; - border-radius: 0; - font-size: 15px; - min-height: 0; - margin: 2px; - font-weight: normal; - } - ''; - }; + settings = [{ + layer = "top"; + position = "top"; + height = 24; + modules-left = ["sway/workspaces" "sway/mode"]; + modules-center = ["sway/window"]; + modules-right = [ "network" "pulseaudio" "clock" ]; + modules = { + "network" = { + format-wifi = "{essid} ({signalStrength}%)"; + format-ethernet = "{ifname}: {ipaddr}/{cidr}"; + format-disconnected = "Disconnected"; + }; + "pulseaudio" = { + format = "{icon} {volume}%"; + }; + "clock" = { + format = "{:%a %d %b %H:%M}"; + }; + }; + }]; +}; } -- cgit 1.4.1