From 44e74330e83c148ff8eac0b1353680ce6191e15e Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Fri, 12 Jan 2024 19:08:30 +0100 Subject: [PATCH] replace SUPER key by mainMod (generalisation) --- README.md | 26 +++++++++++++------------- modules/home/hyprland/config.nix | 25 ++++++++++++------------- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 93732cc..102eb21 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ All the scripts are in ```modules/home/scripts/scripts/``` and are exported as p ### ⌨️ Keybinds -View all keybinds by pressing ```$mainMod F1``` +View all keybinds by pressing ```$mainMod F1```. By default ```$mainMod``` is ```SUPER```
@@ -243,18 +243,18 @@ Complete list (EXPAND) Window control - - ```bind = SUPER SHIFT, left, movewindow, l``` - - ```bind = SUPER SHIFT, right, movewindow, r``` - - ```bind = SUPER SHIFT, up, movewindow, u``` - - ```bind = SUPER SHIFT, down, movewindow, d``` - - ```bind = SUPER CTRL, left, resizeactive, -80 0``` - - ```bind = SUPER CTRL, right, resizeactive, 80 0``` - - ```bind = SUPER CTRL, up, resizeactive, 0 -80``` - - ```bind = SUPER CTRL, down, resizeactive, 0 80``` - - ```bind = SUPER ALT, left, moveactive, -80 0``` - - ```bind = SUPER ALT, right, moveactive, 80 0``` - - ```bind = SUPER ALT, up, moveactive, 0 -80``` - - ```bind = SUPER ALT, down, moveactive, 0 80``` + - ```bind = $mainMod SHIFT, left, movewindow, l``` + - ```bind = $mainMod SHIFT, right, movewindow, r``` + - ```bind = $mainMod SHIFT, up, movewindow, u``` + - ```bind = $mainMod SHIFT, down, movewindow, d``` + - ```bind = $mainMod CTRL, left, resizeactive, -80 0``` + - ```bind = $mainMod CTRL, right, resizeactive, 80 0``` + - ```bind = $mainMod CTRL, up, resizeactive, 0 -80``` + - ```bind = $mainMod CTRL, down, resizeactive, 0 80``` + - ```bind = $mainMod ALT, left, moveactive, -80 0``` + - ```bind = $mainMod ALT, right, moveactive, 80 0``` + - ```bind = $mainMod ALT, up, moveactive, 0 -80``` + - ```bind = $mainMod ALT, down, moveactive, 0 80```
diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 1c32b38..4b7c8c2 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -147,7 +147,6 @@ in bind = $mainMod, D, exec, pkill wofi || wofi --show drun bind = $mainMod, Escape, exec, swaylock bind = $mainMod SHIFT, Escape, exec, shutdown-script - # bind = SUPER, V, exec, cliphist list | wofi -dmenu | cliphist decode | wl-copy bind = $mainMod, P, pseudo, bind = $mainMod, J, togglesplit, bind = $mainMod, E, exec, nemo @@ -192,18 +191,18 @@ in bind = $mainMod CTRL, c, movetoworkspace, empty # window control - bind = SUPER SHIFT, left, movewindow, l - bind = SUPER SHIFT, right, movewindow, r - bind = SUPER SHIFT, up, movewindow, u - bind = SUPER SHIFT, down, movewindow, d - bind = SUPER CTRL, left, resizeactive, -80 0 - bind = SUPER CTRL, right, resizeactive, 80 0 - bind = SUPER CTRL, up, resizeactive, 0 -80 - bind = SUPER CTRL, down, resizeactive, 0 80 - bind = SUPER ALT, left, moveactive, -80 0 - bind = SUPER ALT, right, moveactive, 80 0 - bind = SUPER ALT, up, moveactive, 0 -80 - bind = SUPER ALT, down, moveactive, 0 80 + bind = $mainMod SHIFT, left, movewindow, l + bind = $mainMod SHIFT, right, movewindow, r + bind = $mainMod SHIFT, up, movewindow, u + bind = $mainMod SHIFT, down, movewindow, d + bind = $mainMod CTRL, left, resizeactive, -80 0 + bind = $mainMod CTRL, right, resizeactive, 80 0 + bind = $mainMod CTRL, up, resizeactive, 0 -80 + bind = $mainMod CTRL, down, resizeactive, 0 80 + bind = $mainMod ALT, left, moveactive, -80 0 + bind = $mainMod ALT, right, moveactive, 80 0 + bind = $mainMod ALT, up, moveactive, 0 -80 + bind = $mainMod ALT, down, moveactive, 0 80 # media and volume controls bind = ,XF86AudioRaiseVolume,exec, pamixer -i 2