summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--users/sils/default.nix3
-rw-r--r--users/sils/waybar/default.nix37
2 files changed, 39 insertions, 1 deletions
diff --git a/users/sils/default.nix b/users/sils/default.nix
index 6a3a94f..467c86b 100644
--- a/users/sils/default.nix
+++ b/users/sils/default.nix
@@ -1,7 +1,7 @@
 {nixneovim, ...}: {
   imports = [
     ./direnv
-    ./eww
+    #./eww
     ./git
     ./gpg
     #./grades
@@ -15,6 +15,7 @@
     ./swaylock
     ./xsession
     #./yambar #TODO Update Shell Library
+		./waybar
     ./zsh
     nixneovim.nixosModules.default
   ];
diff --git a/users/sils/waybar/default.nix b/users/sils/waybar/default.nix
new file mode 100644
index 0000000..1639094
--- /dev/null
+++ b/users/sils/waybar/default.nix
@@ -0,0 +1,37 @@
+{pkgs, ...}: {
+  programs.waybar = {
+    enable = true;
+    package = pkgs.waybar-hyprland;
+    settings = [
+      {
+        mainBar = {
+          layer = "top";
+          position = "top";
+          output = [
+            "eDP-1"
+            "DP-2"
+          ];
+        };
+        modules-left = [
+          "wlr/workspaces"
+          "hyprland/mode"
+          "wlr/taskbar"
+        ];
+        modules-center = [
+          "hyprland/window"
+        ];
+        #modules-right = [];
+        "wlr/workspaces" = {
+          "format" = "{icon}";
+          "on-scroll-up" = "hyprctl dispatch workspace e+1";
+          "on-scroll-down" = "hyprctl dispatch workspace e-1";
+          "on-click" = "activate";
+        };
+      }
+    ];
+    systemd = {
+      enable = true;
+      target = "hyprland-session.target";
+    };
+  };
+}