about summary refs log tree commit diff
path: root/users/fcuny/desktop
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-14 17:46:48 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-14 17:46:48 -0800
commitea91a3bdac07b3bf82a5bde66c6136acf14cd07f (patch)
tree85baca39f9042bb8a281b1fb6357b466e39dd07f /users/fcuny/desktop
parenthosts: enable rtkit with audio module (diff)
downloadworld-ea91a3bdac07b3bf82a5bde66c6136acf14cd07f.tar.gz
waybar: initial customization
Diffstat (limited to '')
-rw-r--r--users/fcuny/desktop/sway/waybar.nix30
1 files changed, 30 insertions, 0 deletions
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;
+      }
+    '';
   };
 }