summaryrefslogtreecommitdiff
path: root/.local/bin/status
blob: 7e84b87c92c56337e51d2f04440a542bafeac184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# status - script for i3bar

echo "{ \"version\": 1 }\n[[]"
while :; do
	echo ",["
	printf "{\"full_text\":\"%s\"}," \
		" $(upt)" \
		" $(vol)" \
		" $(vol Capture)" \
		" $(memu)" \
		" $(cpuse)" \
		$(stemp k10temp amdgpu) \
		" $(udld)" \
		"$(hostname -i)" \
		" $(date +%a)" \
		" $(date +%d/%m/%y)" \
		" $(date +%T)" \
			| head -c -1
	echo "]"
	sleep 5 
done