From 75363a8e02b1906ef74339a1015ce8ce5040c264 Mon Sep 17 00:00:00 2001 From: blahai Date: Wed, 23 Oct 2024 18:09:21 +0300 Subject: [PATCH] hyprland stuff --- modules/home-manager/hypr/hyprland/execs.nix | 2 ++ .../home-manager/hypr/hyprland/keybinds.nix | 24 ++++++++++++++++++- modules/home-manager/hypr/hyprland/rules.nix | 2 ++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/hypr/hyprland/execs.nix b/modules/home-manager/hypr/hyprland/execs.nix index 29ed920..0285ac3 100644 --- a/modules/home-manager/hypr/hyprland/execs.nix +++ b/modules/home-manager/hypr/hyprland/execs.nix @@ -2,6 +2,8 @@ wayland.windowManager.hyprland.settings = { exec-once = [ "${pkgs.swww}/bin/swww-daemon --format xrgb" + "${pkgs.floorp}/bin/floorp" + "sleep 3; ${pkgs.vesktop}/bin/vesktop" "ags" ]; }; diff --git a/modules/home-manager/hypr/hyprland/keybinds.nix b/modules/home-manager/hypr/hyprland/keybinds.nix index 0c54aaf..427a377 100644 --- a/modules/home-manager/hypr/hyprland/keybinds.nix +++ b/modules/home-manager/hypr/hyprland/keybinds.nix @@ -3,6 +3,10 @@ bindm = [ "Super, mouse:272, movewindow" "Super, mouse:273, resizewindow" ]; + bindn = [ + " , up, pass, JKPS" + ]; + bind = [ "Super, mouse_up, workspace, +1" "Super, mouse_down, workspace, -1" @@ -11,7 +15,7 @@ "Super, R, exec, ${pkgs.anyrun}/bin/anyrun" "Super, W, exec, ${pkgs.floorp}/bin/floorp" - "Super, Q, exec, ${pkgs.foot}/bin/foot" + "Super, Q, exec, wezterm" "Super, C, killactive" "Super, V, togglefloating" "Super, E, exec, ${pkgs.nautilus}/bin/nautilus -w" @@ -27,6 +31,24 @@ "Super, Tab, exec, ags -t launcher" "Super, X, exec, ags -t powermenu" + ## Hyprland stuff + "Super, Z, movewindow" + + # Swap windows + "Super+Shift, left, movewindow, l" + "Super+Shift, right, movewindow, r" + "Super+Shift, up, movewindow, u" + "Super+Shift, down, movewindow, d" + + # Move focus + "Super, left, movefocus, l" + "Super, right, movefocus, r" + "Super, up, movefocus, u" + "Super, down, movefocus, d" + + # Fullscreen + "Super+Shift, F, fullscreen, 0" + ] ++ map (n: "Alt, ${toString n}, movetoworkspacesilent, ${ toString (if n == 0 then 10 else n) diff --git a/modules/home-manager/hypr/hyprland/rules.nix b/modules/home-manager/hypr/hyprland/rules.nix index e5a539f..93a5c76 100644 --- a/modules/home-manager/hypr/hyprland/rules.nix +++ b/modules/home-manager/hypr/hyprland/rules.nix @@ -9,9 +9,11 @@ windowrule = [ "noblur,.*" "workspace special, spotify" + "workspace 11 silent, JKPS" "workspace 3 silent, vesktop" "workspace 1 silent, floorp" "float, ^(blueberry.py)$" + "float, ^(JKPS)(.*)" ]; windowrulev2 = [