From 03857e455678dc5347a322dbf30213e6aaebcfbc Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Thu, 6 Mar 2025 15:58:16 +0800 Subject: [PATCH] feat: add waybar --- users/rafiq/modules/hyprland.nix | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/users/rafiq/modules/hyprland.nix b/users/rafiq/modules/hyprland.nix index e091a90..a2ea026 100644 --- a/users/rafiq/modules/hyprland.nix +++ b/users/rafiq/modules/hyprland.nix @@ -34,11 +34,11 @@ resize_on_border = true; }; - - input = { - numlock_by_default = true; - follow_mouse = 2; # Click on a window to change focus - }; + + # Programs + exec-once = [ + "waybar" + ]; # Keybinds "$mainMod" = "SUPER"; @@ -73,6 +73,21 @@ "$mainMod, V, togglefloating" ]; + + input = { + numlock_by_default = true; + follow_mouse = 2; # Click on a window to change focus + }; }; }; + programs.waybar = { + enable = true; + settings = { + mainBar = { + layer = "top"; + }; + }; + style = '' + ''; + }; }