From 35fe17313b9b0c2d15eed72c89cc0131d2a0ad7d Mon Sep 17 00:00:00 2001 From: Belal Elsabbagh Date: Sun, 8 Mar 2026 23:08:16 +0200 Subject: [PATCH] moved keymaps --- .config/hypr/hyprland.conf | 91 +------------------------------------ .config/hypr/keymaps.conf | 93 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 89 deletions(-) create mode 100644 .config/hypr/keymaps.conf diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index c1a7831..2ecec7d 100755 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -16,6 +16,8 @@ # You can split this configuration into multiple files # Create your files separately and then link them to this file like this: # source = ~/.config/hypr/myColors.conf +source = ~/.config/hypr/keymaps.conf + env = XDG_CURRENT_DESKTOP,Hyprland env = XDG_SESSION_TYPE,wayland env = XDG_SESSION_DESKTOP,Hyprland @@ -190,95 +192,6 @@ device { sensitivity = -0.5 } - -#################### -### KEYBINDINGSS ### -#################### - -# See https://wiki.hyprland.org/Configuring/Keywords/ -$mainMod = SUPER # Sets "Windows" key as main modifier - - -exec-once = wl-paste --type text --watch cliphist store -exec-once = wl-paste --type image --watch cliphist store -bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy - -# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Return, exec, $terminal -bind = $mainMod, Q, killactive, -bind = $mainMod ALT, Q, exit, -bind = $mainMod, E, exec, $fileManager -bind = $mainMod, B, exec, $browser -bind = $mainMod, T, togglefloating, -bind = $mainMod, F, fullscreen, -bind = $mainMod, R, exec, $menu -bind = $mainMod, P, pseudo, # dwindle -bind = $mainMod, J, togglesplit, # dwindle - -# Move focus with mainMod + arrow keys -bind = $mainMod, left, movefocus, l -bind = $mainMod, right, movefocus, r -bind = $mainMod, up, movefocus, u -bind = $mainMod, down, movefocus, d - -# Moving windows -bind = $mainMod SHIFT, left, swapwindow, l -bind = $mainMod SHIFT, right, swapwindow, r -bind = $mainMod SHIFT, up, swapwindow, u -bind = $mainMod SHIFT, down, swapwindow, d - -# Window resizing X Y -bind = $mainMod CTRL, left, resizeactive, -60 0 -bind = $mainMod CTRL, right, resizeactive, 60 0 -bind = $mainMod CTRL, up, resizeactive, 0 -60 -bind = $mainMod CTRL, down, resizeactive, 0 60 - -# Switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 - -# Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 -bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 -bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 -bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 -bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 -bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 -bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 -bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 -bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 -bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - -# Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, mouse:273, resizewindow - -bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%- -bind = , XF86MonBrightnessUp, exec, brightnessctl set 5%+ - -bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle -# Requires playerctl -bindl = , XF86AudioPlay, exec, playerctl play-pause -bindl = , XF86AudioPrev, exec, playerctl previous -bindl = , XF86AudioNext, exec, playerctl next - -bind = $mainMod SHIFT, C, exec, $terminal -e sh -c "nvim ~/.config/" - -bind = $mainMod SHIFT, S, exec, grimblast copysave area ############################## ### WINDOWS AND WORKSPACES ### ############################## diff --git a/.config/hypr/keymaps.conf b/.config/hypr/keymaps.conf new file mode 100644 index 0000000..f98a4fc --- /dev/null +++ b/.config/hypr/keymaps.conf @@ -0,0 +1,93 @@ +$terminal = alacritty +$fileManager = dolphin +$menu = wofi --show drun +$browser = zen-browser + +#################### +### KEYBINDINGSS ### +#################### + +# See https://wiki.hyprland.org/Configuring/Keywords/ +$mainMod = SUPER # Sets "Windows" key as main modifier + + +exec-once = wl-paste --type text --watch cliphist store +exec-once = wl-paste --type image --watch cliphist store +bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy + +# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more +bind = $mainMod, Return, exec, $terminal +bind = $mainMod, Q, killactive, +bind = $mainMod ALT, Q, exit, +bind = $mainMod, E, exec, $fileManager +bind = $mainMod, B, exec, $browser +bind = $mainMod, T, togglefloating, +bind = $mainMod, F, fullscreen, +bind = $mainMod, R, exec, $menu +bind = $mainMod, P, pseudo, # dwindle +bind = $mainMod, J, togglesplit, # dwindle + +# Move focus with mainMod + arrow keys +bind = $mainMod, left, movefocus, l +bind = $mainMod, right, movefocus, r +bind = $mainMod, up, movefocus, u +bind = $mainMod, down, movefocus, d + +# Moving windows +bind = $mainMod SHIFT, left, swapwindow, l +bind = $mainMod SHIFT, right, swapwindow, r +bind = $mainMod SHIFT, up, swapwindow, u +bind = $mainMod SHIFT, down, swapwindow, d + +# Window resizing X Y +bind = $mainMod CTRL, left, resizeactive, -60 0 +bind = $mainMod CTRL, right, resizeactive, 60 0 +bind = $mainMod CTRL, up, resizeactive, 0 -60 +bind = $mainMod CTRL, down, resizeactive, 0 60 + +# Switch workspaces with mainMod + [0-9] +bind = $mainMod, 1, workspace, 1 +bind = $mainMod, 2, workspace, 2 +bind = $mainMod, 3, workspace, 3 +bind = $mainMod, 4, workspace, 4 +bind = $mainMod, 5, workspace, 5 +bind = $mainMod, 6, workspace, 6 +bind = $mainMod, 7, workspace, 7 +bind = $mainMod, 8, workspace, 8 +bind = $mainMod, 9, workspace, 9 +bind = $mainMod, 0, workspace, 10 + +# Move active window to a workspace with mainMod + SHIFT + [0-9] +bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 +bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 +bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 +bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 +bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 +bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 +bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 +bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 +bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 +bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 + +# Scroll through existing workspaces with mainMod + scroll +bind = $mainMod, mouse_down, workspace, e+1 +bind = $mainMod, mouse_up, workspace, e-1 + +# Move/resize windows with mainMod + LMB/RMB and dragging +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, mouse:273, resizewindow + +bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%- +bind = , XF86MonBrightnessUp, exec, brightnessctl set 5%+ + +bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ +bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +# Requires playerctl +bindl = , XF86AudioPlay, exec, playerctl play-pause +bindl = , XF86AudioPrev, exec, playerctl previous +bindl = , XF86AudioNext, exec, playerctl next + +bind = $mainMod SHIFT, C, exec, $terminal -e sh -c "nvim ~/.config/" + +bind = $mainMod SHIFT, S, exec, grimblast copysave area