From: Andre Ramnitz Date: Sat, 17 May 2025 20:50:59 +0000 (+0200) Subject: hypr: mouse-zoom X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=895295886d1754a5fd77edebee027c45359bbeb2;p=dotfiles.git hypr: mouse-zoom --- diff --git a/dot-config/hypr/fragments/keybinds.conf b/dot-config/hypr/fragments/keybinds.conf index cce6f5bc..4d66bdab 100644 --- a/dot-config/hypr/fragments/keybinds.conf +++ b/dot-config/hypr/fragments/keybinds.conf @@ -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 +