nsbin/screen-always-on

9 lines
113 B
Bash

#!/bin/sh
if [ $# -ge 1 ]; then
xset +dpms
xautolock -enable
else
xset -dpms
xautolock-disable
fi