From 577154c8718fe65533e08cc0bf6bd7a89ea3352b Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 18 May 2025 18:22:48 +0800 Subject: [PATCH] feat(hyprland): add basic keybinds --- homes/x86_64-linux/rafiq/default.nix | 3 +++ .../x86_64-linux/rafiq/programs/hyprland.nix | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/homes/x86_64-linux/rafiq/default.nix b/homes/x86_64-linux/rafiq/default.nix index e0f6ae5..208edbb 100644 --- a/homes/x86_64-linux/rafiq/default.nix +++ b/homes/x86_64-linux/rafiq/default.nix @@ -9,6 +9,9 @@ home.packages = with pkgs; [ kitty ]; + home.sessionVariables = { + TERMINAL = "kitty"; + }; home.persistence."/persist/home/rafiq" = { directories = [ diff --git a/homes/x86_64-linux/rafiq/programs/hyprland.nix b/homes/x86_64-linux/rafiq/programs/hyprland.nix index 5d9bd8c..c9861e2 100644 --- a/homes/x86_64-linux/rafiq/programs/hyprland.nix +++ b/homes/x86_64-linux/rafiq/programs/hyprland.nix @@ -1,6 +1,5 @@ {config, lib, osConfig, ...}: { - xdg.configFile."uwsm/env".text = # sh '' @@ -12,6 +11,24 @@ "$hypr" = "CTRL_SUPER_ALT_SHIFT"; bind = [ "$hypr, Q, exec, uwsm stop" + "SUPER, W, killactive" + + "SUPER, return, exec, uwsm app -- $TERMINAL" + + "SUPER, H, cyclenext, visible" + "SUPER, L, cyclenext, visible prev" + "SUPER_ALT, H, movewindow, l" + "SUPER_ALT, J, movewindow, d" + "SUPER_ALT, K, movewindow, u" + "SUPER_ALT, L, movewindow, r" + "ALT_SHIFT, H, resizeactive, -10% 0" + "ALT_SHIFT, J, resizeactive, 0 -10%" + "ALT_SHIFT, K, resizeactive, 0 10%" + "ALT_SHIFT, L, resizeactive, 10% 0" + "SUPER_CTRL, H, workspace, r-1" + "SUPER_CTRL, L, workspace, r+1" + "$hypr, H, movetoworkspace, r-1" + "$hypr, L, movetoworkspace, r+1" ]; }; };