]> Freerunner's - dotfiles.git/commitdiff
hypr: mouse-zoom
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 17 May 2025 20:50:59 +0000 (22:50 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sat, 17 May 2025 20:50:59 +0000 (22:50 +0200)
dot-config/hypr/fragments/keybinds.conf

index cce6f5bc63b55df66657f7bffa3154a00a416be5..4d66bdabe6d6a7bacae43c5b4e4c1f02fe06aee3 100644 (file)
@@ -18,7 +18,6 @@ bind = $mainmod,                      F, fullscreen,1
 bind = $mainmod Shift,                 F, fullscreen,0
 bind = $mainmod,                       V, togglefloating
 bind = $mainmod Shift,                 V, exec, killall fuzzel || cliphist list | fuzzel -d --config="$HOME"/.config/fuzzel/fuzzel-centered.ini | cliphist decode | wl-copy
-# bind = $mainmod Shift,       R, exec, killall rofi || rofi -show run # rofi installed for keepassxc-browser script
 bind = $mainmod,                       A, pseudo, # dwindle, A for Artificial
 bind = $mainmod,                       B, layoutmsg, preselect d # dwindle
 bind = $mainmod,                       S, togglesplit, # dwindle
@@ -120,6 +119,7 @@ bind = $mainmod ALT,                L, moveactive, 40 0
 bind = $mainmod ALT,           K, moveactive, 0 -40
 bind = $mainmod ALT,           J, moveactive, 0 40 
 
+
 # workspaces
 # ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 # Switch workspaces with mainMod + [0-9]
@@ -182,7 +182,7 @@ binde = ,                                   k, resizeactive, 0 -10
 binde = ,                                      j, resizeactive, 0 10
 
 # use reset to go back to the global submap
-bind = , catchall, submap, reset 
+bind = , catchall, submap, reset
 
 # will reset the submap, which will return to the global submap
 submap = reset
@@ -197,5 +197,7 @@ bind = $mainmod,                    mouse_up, workspace, m-1
 bind = $mainmod,                       mouse_down, workspace, m+1
 bind = $mainmod,                       mouse_left, workspace, r-1
 bind = $mainmod,                       mouse_right, workspace, r+1
-bind = $mod SHIFT, mouse_up, exec, hyprctl -q keyword cursor:zoom_factor 1
-bind = $mod SHIFT, mouse_down, exec, hyprctl -q keyword cursor:zoom_factor 1
+bind = $mainmod SHIFT,         mouse_down, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 * 1.25}')
+bind = $mainmod SHIFT,         mouse_up, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 * 0.75}')
+binds:scroll_event_delay = 25
+