diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-16 16:29:22 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-16 16:29:22 -0800 |
commit | 89108cd4dbab075ef353316ff7a284b3335a5cf1 (patch) | |
tree | 36e0a37548cfebfd204a49e81454f02abbc6cff7 /users/fcuny/desktop | |
parent | home-manager: install a few more packages (diff) | |
download | world-89108cd4dbab075ef353316ff7a284b3335a5cf1.tar.gz |
swaybar: keep it simple for now
Diffstat (limited to 'users/fcuny/desktop')
-rw-r--r-- | users/fcuny/desktop/sway/waybar.nix | 53 |
1 files changed, 22 insertions, 31 deletions
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}"; + }; + }; + }]; +}; } |