diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-12-09 19:20:46 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-12-10 13:52:49 +0100 |
| commit | fb03fb31bb4661d6bfd57d779b4094160087d14f (patch) | |
| tree | 48595b6ac45eb164f27b003483af4bce920cfcd3 | |
| parent | b5990f948e122878e6ca0ff5f75f768edf560d54 (diff) | |
Update binding and minor input modification
| -rw-r--r-- | .config/hypr/bindings.conf | 69 | ||||
| -rw-r--r-- | .config/hypr/input.conf | 4 |
2 files changed, 69 insertions, 4 deletions
diff --git a/.config/hypr/bindings.conf b/.config/hypr/bindings.conf index a1ae5a6..71223aa 100644 --- a/.config/hypr/bindings.conf +++ b/.config/hypr/bindings.conf @@ -1,4 +1,65 @@ -# Application bindings -bindd = SUPER SHIFT, B, Browser, exec, firefox -bindd = SUPER SHIFT, T, Terminal, exec, alacritty -bindd = SUPER SHIFT, G, Terminal, exec, ghostty +bindd = SUPER, Q, Quit, killactive, +bindd = SUPER SHIFT, T, Terminal, exec, uwsm-app -- alacritty +bindd = SUPER SHIFT, F, File Manager, exec, uwsm-app -- nautilus --new-window +bindd = SUPER SHIFT, B, Web Browser, exec, uwsm-app -- firefox +bindd = SUPER SHIFT CONTROL, B, Web Browser, exec, uwsm-app -- firefox --private-window + +# Switch workspaces with ctrl + [0-9] (MacOS-like) +bind = CONTROL, 1, workspace, 1 +bind = CONTROL, 2, workspace, 2 +bind = CONTROL, 3, workspace, 3 +bind = CONTROL, 4, workspace, 4 +bind = CONTROL, 5, workspace, 5 +bind = CONTROL, 6, workspace, 6 +bind = CONTROL, 7, workspace, 7 +bind = CONTROL, 8, workspace, 8 +bind = CONTROL, 9, workspace, 9 +bind = CONTROL, 0, workspace, 10 + +# Move active window to a workspace with ctrl + SHIFT + [0-9] +bind = CONTROL SHIFT, 1, movetoworkspace, 1 +bind = CONTROL SHIFT, 2, movetoworkspace, 2 +bind = CONTROL SHIFT, 3, movetoworkspace, 3 +bind = CONTROL SHIFT, 4, movetoworkspace, 4 +bind = CONTROL SHIFT, 5, movetoworkspace, 5 +bind = CONTROL SHIFT, 6, movetoworkspace, 6 +bind = CONTROL SHIFT, 7, movetoworkspace, 7 +bind = CONTROL SHIFT, 8, movetoworkspace, 8 +bind = CONTROL SHIFT, 9, movetoworkspace, 9 +bind = CONTROL SHIFT, 0, movetoworkspace, 10 + +# Move/resize windows with mouse (SUPER + SHIFT + left/right click) +bindm = SUPER SHIFT, mouse:272, movewindow +bindm = SUPER SHIFT, mouse:273, resizewindow + +# Move focus with (SUPER + h/j/k/l) +binde = SUPER, h, movefocus, l +binde = SUPER, j, movefocus, d +binde = SUPER, k, movefocus, u +binde = SUPER, l, movefocus, r + +# Swap windows with (SUPER + SHIFT + h/j/k/l) +binde = SUPER SHIFT, h, swapwindow, l +binde = SUPER SHIFT, j, swapwindow, d +binde = SUPER SHIFT, k, swapwindow, u +binde = SUPER SHIFT, l, swapwindow, r + +# Resize windows with (SUPER + CONTROL + h/j/k/l) +binde = SUPER CONTROL, h, resizeactive, -20 0 +binde = SUPER CONTROL, j, resizeactive, 0 20 +binde = SUPER CONTROL, k, resizeactive, 0 -20 +binde = SUPER CONTROL, l, resizeactive, 20 0 + +# Laptop multimedia keys for volume and LCD brightness +bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ +bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle +bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ +bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- + +# Requires playerctl +bindl = , XF86AudioNext, exec, playerctl next +bindl = , XF86AudioPause, exec, playerctl play-pause +bindl = , XF86AudioPlay, exec, playerctl play-pause +bindl = , XF86AudioPrev, exec, playerctl previous diff --git a/.config/hypr/input.conf b/.config/hypr/input.conf index c45a113..7029850 100644 --- a/.config/hypr/input.conf +++ b/.config/hypr/input.conf @@ -3,6 +3,7 @@ input { # Swap Caps Lock and Escape kb_options = caps:swapescape + kb_layout = us # Change speed of keyboard repeat repeat_rate = 40 @@ -14,6 +15,9 @@ input { # Increase sensitivity for mouse/trackpad (default: 0) # sensitivity = 0.35 + # focus follows mouse pointer + # follow_mouse = 1 + touchpad { natural_scroll = false |
