10 lines
144 B
Bash
10 lines
144 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [[ "$(xset q | awk '/timeout:/ {print $2}')" == "0" ]]; then
|
|
xset s on
|
|
xset +dpms
|
|
else
|
|
xset s off
|
|
xset -dpms
|
|
fi
|