aboutsummaryrefslogtreecommitdiff
path: root/laptop/.config/hypr/scripts/zoom.sh
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2025-11-06 03:35:21 +0100
committerMosder <xmosder12@gmail.com>2025-11-06 03:35:21 +0100
commit6abd35ff0705406aabc827ce423d28ade6040c1b (patch)
tree555b98ca9c70b4827529fc0a8b372d97fd0d7060 /laptop/.config/hypr/scripts/zoom.sh
parentc6ff7b4d2c91fbc086e573e01f76da3dc3ef3ed3 (diff)
laptop - wezterm
Diffstat (limited to 'laptop/.config/hypr/scripts/zoom.sh')
-rwxr-xr-xlaptop/.config/hypr/scripts/zoom.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/laptop/.config/hypr/scripts/zoom.sh b/laptop/.config/hypr/scripts/zoom.sh
new file mode 100755
index 0000000..433f899
--- /dev/null
+++ b/laptop/.config/hypr/scripts/zoom.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+ZOOM=$(hyprctl getoption cursor:zoom_factor | grep float | awk -F" " '{print $2}')
+ZOOM=$(echo "scale=0; ($ZOOM+1)/1" | bc)
+if [[ $ZOOM -gt $MAX_ZOOM ]]; then
+ ZOOM=1
+fi
+
+hyprctl -q keyword cursor:zoom_factor $ZOOM