]> Skullheadx's Git Forge - nixos.git/commitdiff
add hyprland binds
authorAndrew <admonty1@protonmail.com>
Mon, 18 Aug 2025 22:52:22 +0000 (18:52 -0400)
committerAndrew <admonty1@protonmail.com>
Mon, 18 Aug 2025 22:52:22 +0000 (18:52 -0400)
home.nix
hyprland/binds.nix [moved from hyprland.nix with 62% similarity]
hyprland/hyprland.nix [new file with mode: 0644]

index 48110abd6769a1f7ce8d7c4bb1eddc7ade058d2c..1de8dedd0eb599b952f69862b8001d4a50f17112 100644 (file)
--- a/home.nix
+++ b/home.nix
@@ -7,7 +7,7 @@
 {
   imports = [
     ./sh.nix
-    ./hyprland.nix
+    ./hyprland/hyprland.nix
     ./ghostty.nix
     ./obsidian.nix
     ./fastfetch.nix
     userEmail = "admonty1@protonmail.com";
   };
 
+programs.keepassxc = {
+  enable = true;
+#  settings = {
+#    Browser = {
+#      Enabled = true;
+#      UseCustomBrowser = true;
+#      CustomBrowserType = 1;
+#
+#};
+#    GUI = {
+#      ShowTrayIcon = true;
+#      ApplicationTheme = "dark";
+#    };
+#  };
+};
+
   # Let Home Manager install and manage itself.
   programs.home-manager.enable = true;
 }
similarity index 62%
rename from hyprland.nix
rename to hyprland/binds.nix
index e332a4701442a56ed64bd208cb8246c2acd71ce6..fc089b605af7ad301cf9e562508952c180fab2f9 100644 (file)
@@ -1,50 +1,17 @@
 { config, pkgs, ... }:
 
 {
+       
+imports = [ 
+       ./binds.nix
+];
   wayland.windowManager.hyprland = {
-    enable = true;
-    settings = {
-      monitor = [
-        "DP-3,2560x1440@180.00,0x0,1"
-        "DP-2,1920x1080@165.00,2560x360,1"
-      ];
       "$mod" = "SUPER";
-      input = {
-        kb_layout = "us";
-        kb_options = "caps:escape";
-        numlock_by_default = true;
-
-      };
-      workspace = [
-        "1, monitor:DP-3"
-        "2, monitor:DP-3"
-        "3, monitor:DP-3"
-        "4, monitor:DP-3"
-        "5, monitor:DP-3"
-        "6, monitor:DP-2"
-        "7, monitor:DP-2"
-        "8, monitor:DP-2"
-        "9, monitor:DP-2"
-        "0, monitor:DP-2"
-      ];
-      exec-once = [
-        "xrandr --output DP-3 --primary"
-        "[workspace 1 silent] ghostty"
-        "[workspace 2 silent] ghostty -e rmpc"
-        "[workspace 3 silent] obsidian"
-        "[workspace 6 silent] brave"
-        "[workspace 7 silent] discord"
-        "[workspace 8 silent] steam"
-      ];
-      windowrule = [
-        "workspace 7 silent, class:(discord)"
-        "workspace 8 silent, class:(steam)"
-      ];
 
       bind = [
         "$mod, f, exec, ghostty"
         "$mod, d, exec, brave"
-        "$mod, space, exec, rofi -show drun"
+        "$mod, space, exec, pkill rofi || rofi -show drun"
         ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && notify-send 'Volume Up'"
         ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send 'Volume Down'"
         ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send 'Mute Toggled'"
diff --git a/hyprland/hyprland.nix b/hyprland/hyprland.nix
new file mode 100644 (file)
index 0000000..f44a62a
--- /dev/null
@@ -0,0 +1,51 @@
+{ config, pkgs, ... }:
+
+{
+       
+imports = [ 
+       ./binds.nix
+];
+  wayland.windowManager.hyprland = {
+    enable = true;
+    settings = {
+      monitor = [
+        "DP-3,2560x1440@180.00,0x0,1"
+        "DP-2,1920x1080@165.00,2560x360,1"
+      ];
+      input = {
+        kb_layout = "us";
+        kb_options = "caps:escape,altwin:swap_lalt_lwin";
+
+        numlock_by_default = true;
+
+      };
+
+      workspace = [
+        "1, monitor:DP-3"
+        "2, monitor:DP-3"
+        "3, monitor:DP-3"
+        "4, monitor:DP-3"
+        "5, monitor:DP-3"
+        "6, monitor:DP-2"
+        "7, monitor:DP-2"
+        "8, monitor:DP-2"
+        "9, monitor:DP-2"
+        "0, monitor:DP-2"
+      ];
+      exec-once = [
+        "xrandr --output DP-3 --primary"
+        "[workspace 1 silent] ghostty"
+        "[workspace 2 silent] ghostty -e rmpc"
+        "[workspace 3 silent] obsidian"
+        "[workspace 6 silent] brave"
+        "[workspace 7 silent] discord"
+        "[workspace 8 silent] steam"
+      ];
+      windowrule = [
+        "workspace 7 silent, class:(discord)"
+        "workspace 8 silent, class:(steam)"
+      ];
+    };
+  };
+
+}