aboutsummaryrefslogtreecommitdiff
path: root/common/home/mosder/.config/hypr/scripts/zoom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common/home/mosder/.config/hypr/scripts/zoom.sh')
-rwxr-xr-xcommon/home/mosder/.config/hypr/scripts/zoom.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/home/mosder/.config/hypr/scripts/zoom.sh b/common/home/mosder/.config/hypr/scripts/zoom.sh
index 433f899..1bb07f6 100755
--- a/common/home/mosder/.config/hypr/scripts/zoom.sh
+++ b/common/home/mosder/.config/hypr/scripts/zoom.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-ZOOM=$(hyprctl getoption cursor:zoom_factor | grep float | awk -F" " '{print $2}')
+ZOOM=$(hyprctl repl 'hl.get_config("cursor.zoom_factor")')
ZOOM=$(echo "scale=0; ($ZOOM+1)/1" | bc)
if [[ $ZOOM -gt $MAX_ZOOM ]]; then
ZOOM=1
fi
-hyprctl -q keyword cursor:zoom_factor $ZOOM
+hyprctl -q eval "hl.config({ cursor = { zoom_factor = $ZOOM } })"