First commit. Add .i3 directory
This commit is contained in:
9
.i3/scripts/dpmsctl.sh
Normal file
9
.i3/scripts/dpmsctl.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
STATUS=`xset q | awk '{for (I=1;I<=NF;I++) if ($I == "DPMS" && $(I+1) == "is") {print $(I+2)};}'`
|
||||
if [ "$STATUS" == "Enabled" ]; then
|
||||
xset -dpms
|
||||
yad --timeout 1 --text "<span font=\"20\">DPMS Disabled</span>" --no-buttons --sticky --on-top
|
||||
else
|
||||
xset dpms
|
||||
yad --timeout 1 --text "<span font=\"20\">DPMS Enabled</span>" --no-buttons --sticky --on-top
|
||||
fi
|
||||
Reference in New Issue
Block a user