new keybindings and custom script for auto scaling my monitor
This commit is contained in:
10
.local/lib/hyde/toggle_scale.sh
Executable file
10
.local/lib/hyde/toggle_scale.sh
Executable 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
|
||||
Reference in New Issue
Block a user