Don't need fallback for earlier versions
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
step="${1:-+5%}"
|
step="${1:-+5%}"
|
||||||
|
|
||||||
if [[ $step == "off" ]]; then
|
if [[ $step == "off" ]]; then
|
||||||
hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' >/dev/null 2>&1 || hyprctl dispatch dpms off >/dev/null 2>&1
|
hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' >/dev/null 2>&1
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ $step == "on" ]]; then
|
elif [[ $step == "on" ]]; then
|
||||||
hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' >/dev/null 2>&1 || hyprctl dispatch dpms on >/dev/null 2>&1
|
hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' >/dev/null 2>&1
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user