Add script to toggle some hyprland options for power saving

This commit is contained in:
ItsDrike 2022-11-07 23:00:52 +01:00
parent f8d51d5f26
commit 49afc714f6
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -0,0 +1,15 @@
#!/bin/sh
if [ "$1" = "on" ]; then
echo "Enabled power saving mode"
hyprctl keyword decoration:blur false >/dev/null
hyprctl keyword decoration:drop_shadow false >/dev/null
hyprctl keyword misc:no_vfr false >/dev/null
hyprctl keyword misc:disable_autoreload true >/dev/null
else
echo "Disabled power saving mode"
hyprctl keyword decoration:blur true >/dev/null
hyprctl keyword decoration:drop_shadow true >/dev/null
hyprctl keyword misc:no_vfr true >/dev/null
hyprctl keyword misc:disable_autoreload false >/dev/null
fi