summaryrefslogtreecommitdiffstats
path: root/.bin/dwm-start
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-02-03 21:31:55 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-02-03 21:31:55 +0100
commit703ed1915c69911a95cab6e1fb6524629c976800 (patch)
tree1e4063eeace827aa557e910aa502ee173dd6e4ab /.bin/dwm-start
parentd64d4a6a3924e144fe49b3d956320b37786a738a (diff)
downloaddots-703ed1915c69911a95cab6e1fb6524629c976800.tar.gz
Thu Feb 3 09:31:55 PM CET 2022
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.