From 81eb56f3a0513eacad7af642482cd63c99d44425 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 23 Aug 2025 18:55:30 +0800 Subject: hypr: zoom --- dot-config/hypr/binds.conf | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3