Files
dotfiles/.config/hypr/scripts/dpms_toggle.sh
2025-08-02 03:19:32 +02:00

9 lines
226 B
Bash
Executable File

#!/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