From ea91a3bdac07b3bf82a5bde66c6136acf14cd07f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 14 Feb 2022 17:46:48 -0800 Subject: waybar: initial customization --- users/fcuny/desktop/sway/waybar.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'users/fcuny/desktop') diff --git a/users/fcuny/desktop/sway/waybar.nix b/users/fcuny/desktop/sway/waybar.nix index e5d28de..9678ec9 100644 --- a/users/fcuny/desktop/sway/waybar.nix +++ b/users/fcuny/desktop/sway/waybar.nix @@ -4,5 +4,35 @@ 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; + }; + + "clock" = { + interval = 30; + format = "{%D %M %Y %H:%M}"; + }; + }; + }]; + + style = '' + * { + border: none; + border-radius: 0; + font-size: 15px; + min-height: 0; + margin: 2px; + font-weight: normal; + } + ''; }; } -- cgit 1.4.1