aboutsummaryrefslogtreecommitdiff
path: root/common/home/mosder/.config/hypr/scripts/zoom.sh
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-08-20 15:24:39 +0200
committerMosder <xmosder12@gmail.com>2026-08-20 15:24:58 +0200
commita406ba6f9f2b6c8e4fa76ef1eb77c4825b4f18b8 (patch)
tree1db2dd5bad06e9603e7bcd3e00f2a4950dc12a1a /common/home/mosder/.config/hypr/scripts/zoom.sh
parent9c8afb5cc83cf3fe6a804603850b9dc720cc81d1 (diff)
vibecoded rewrite of hyprland configs from hyprlang to lua - need to test it and prolly check if claude didn't do anything stupid
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 } })"