diff options
| author | Mosder <xmosder12@gmail.com> | 2025-12-08 19:49:48 +0000 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2025-12-08 19:49:48 +0000 |
| commit | 08787600c2065d49ce560186b619ac25fe1622fb (patch) | |
| tree | 461ceaeb722245d9001391178926b488d50140a8 /desktop/.config/hypr/scripts/zoom.sh | |
| parent | 2b2e01cbff377309d7d63f6090c25eb9e483065a (diff) | |
desktop hyprland
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 |
