14 lines
214 B
Fish
14 lines
214 B
Fish
|
#!/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
|