summaryrefslogtreecommitdiffstats
path: root/.bin/dwm-start
blob: b42252a9c8aec3f0fe3e6ed3439db18e41ddcf61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

__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

	# dwm
	dwm 2> ~/.dwm.log
done
remember that computers suck.