First commit. Add .i3 directory

This commit is contained in:
kuben
2019-07-02 21:47:58 +02:00
commit 554573c69b
23 changed files with 1604 additions and 0 deletions

9
.i3/scripts/dpmsctl.sh Normal file
View 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