summaryrefslogtreecommitdiffstats
path: root/.bin/dwm-start
blob: e2dcc005e1d66cbe1bebcd2a1a5c7d993b67fe3d (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
	ag-autorandr

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