summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-23 18:55:30 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-23 18:55:30 +0800
commit81eb56f3a0513eacad7af642482cd63c99d44425 (patch)
tree93d3f3ce82c522cd11bb3c40c22e308495d70f44
parent3f73c6f990027920df65bd665f2de4685ff36f54 (diff)
hypr: zoom
-rw-r--r--dot-config/hypr/binds.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf
index 9d2b349f..6dced613 100644
--- a/dot-config/hypr/binds.conf
+++ b/dot-config/hypr/binds.conf
@@ -6,6 +6,7 @@ binds {
# allow_workspace_cycles = yes
# movefocus_cycles_fullscreen = true
allow_pin_fullscreen = true
+ scroll_event_delay = 0
}
# See https://wiki.hyprland.org/Configuring/Keywords/
@@ -166,6 +167,13 @@ bind = $mod, end, scroller:movefocus, end
# zoom
# bind = $mod, equal, execr, /bin/bash -c "hyprctl keyword cursor:zoom_factor $(($(hyprctl getoption cursor:zoom_factor | awk '/float/ {print $2}')+0.1))"
+bind = $mod, mouse_down, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor -j | jq '.float * 1.1')
+bind = $mod, mouse_up, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor -j | jq '(.float * 0.9) | if . < 1 then 1 else . end')
+binde = $mod, equal, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor -j | jq '.float * 1.1')
+binde = $mod, minus, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor -j | jq '(.float * 0.9) | if . < 1 then 1 else . end')
+bind = $mod shift, minus, exec, hyprctl -q keyword cursor:zoom_factor 1
+bind = $mod shift, equal, exec, hyprctl -q keyword cursor:zoom_factor 1
+
# spotify lyrics ig
bind = $mod shift, u, execr, $SCRIPTSDIR/togglespot.sh