summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar
blob: a322665aaa8d891686d656dc09ec2a4121f9ae72 (plain)
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
#!/bin/sh

# Refreshes the dwm bar using the scripts in:
# $SCRIPTS/dwm/

# When given the echo option, echo to stdout instead
# of refreshing (useful for debugging)

battery=$(battery)
datetime=$(datetime)
# dropbox=$(dropbox-status)
kblayout=$(kblayout)
# mailbox=$(mailbox)
news=$(news)
vpnstatus=$(vpnstatus)
# wifi=$(wifi)
yadms=$(yadms)

bar="$yadms|$news|$datetime|$kblayout|$vpnstatus|$battery |"

case "$1" in
	echo) echo "$bar" ;;
	*) xsetroot -name  "$bar" ;;
esac