summaryrefslogtreecommitdiffstats
path: root/.bin/dwm-start
diff options
context:
space:
mode:
Diffstat (limited to '.bin/dwm-start')
-rwxr-xr-x.bin/dwm-start16
1 files changed, 14 insertions, 2 deletions
diff --git a/.bin/dwm-start b/.bin/dwm-start
index e411db5..b42252a 100755
--- a/.bin/dwm-start
+++ b/.bin/dwm-start
@@ -1,13 +1,25 @@
#!/bin/sh
-kill -9 xidle
-xidle &
+__xidle() {
+ kill -9 xidle
+ xidle &
+}
+
+__xsuspender() {
+ pkill -9 xsuspender
+ nohup xsuspender >/dev/null & disown
+}
+
+command -v xidle && __xidle
while true; do
# status
pkill -9 -f "ag-status"
ag-status -l >/dev/null &
+ # xsuspender
+ command -v xsuspender && __xsuspender
+
# x11 configuration
x11-config
. ~/.bin/x11-screen
remember that computers suck.