diff options
| author | Mosder <xmosder12@gmail.com> | 2026-01-12 13:32:23 +0100 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-01-12 13:32:23 +0100 |
| commit | b369f8d42a3806a7bc47ceca9b02245f6ff8557a (patch) | |
| tree | de55cbf00914ee4f4d4fcaa76758a39aa87ee087 /desktop/.config/hypr/scripts/zoom.sh | |
| parent | f00280f737ef09b5bb9b79f09c57deaf57b6c327 (diff) | |
| parent | 1b6019803990b4aeae967b24f1b5e12d12020ba2 (diff) | |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'desktop/.config/hypr/scripts/zoom.sh')
| -rwxr-xr-x | desktop/.config/hypr/scripts/zoom.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/.config/hypr/scripts/zoom.sh b/desktop/.config/hypr/scripts/zoom.sh new file mode 100755 index 0000000..433f899 --- /dev/null +++ b/desktop/.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 |
