dotfiles/herbstluftwm/fish_functions/toggle_idle_screen.fish

14 lines
214 B
Fish
Executable File

#!/usr/bin/env fish
import notify
function toggle_idle_screen
if xset q | rg "DPMS is Enabled"
# Disable
xset -dpms
notify "screen idle off"
else
# Enable
xset +dpms
notify "screen idle on"
end
end