From 08787600c2065d49ce560186b619ac25fe1622fb Mon Sep 17 00:00:00 2001 From: Mosder Date: Mon, 8 Dec 2025 19:49:48 +0000 Subject: desktop hyprland --- desktop/.config/hypr/scripts/zoom.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 desktop/.config/hypr/scripts/zoom.sh (limited to 'desktop/.config/hypr/scripts/zoom.sh') 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 -- cgit v1.2.3