new keybindings and custom script for auto scaling my monitor

This commit is contained in:
2025-08-20 12:17:14 +03:00
parent 124098cab6
commit f42dd4a636
6 changed files with 120 additions and 130 deletions

10
.local/lib/hyde/toggle_scale.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
MONITOR="eDP-1"
CURRENT=$(hyprctl -j monitors | jq ".[] | select(.name==\"$MONITOR\").scale")
if (( $(echo "$CURRENT == 1.20" | bc -l) )); then
hyprctl keyword monitor "$MONITOR,1920x1080@144,0x0,1"
else
hyprctl keyword monitor "$MONITOR,1920x1080@144,0x0,1.2"
fi