added dpms bind to hyprland

This commit is contained in:
2025-08-02 03:19:32 +02:00
parent 2ecced441d
commit d538e44a46
2 changed files with 10 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ $notclose = uwsm app -- swaync-client --close-latest
$notcloseall = uwsm app -- swaync-client --close-all
$lockcmd = hyprlock
$dpms = ~/.config/hypr/scripts/dpms_toggle.sh
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
# Layout Binds
@@ -59,6 +60,7 @@ bind = $mainMod ALT_L, L, movewindoworgroup, r
# Usability
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod, L, exec, $lockcmd
bind = $mainMod SHIFT, L, exec, $dpms
#bind = $mainMod SHIFT CTRL, M, exit,
# App Binds

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Toggle DPMS for ALL monitors
if hyprctl monitors -j | jq -e '.[].dpmsStatus' | grep -q true; then
hyprctl dispatch dpms off # all off
else
hyprctl dispatch dpms on # all on
fi