aboutsummaryrefslogtreecommitdiff
path: root/toggleBar.sh
blob: 76259442db875f0872e47087fdf6a6be4f949517 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
configFile="$HOME/.config/barStatus"
[ ! -f "$configFile" ] && echo "1" >"$configFile"
if [ "$(cat "$configFile")" = "0" ]; then
	i3-msg bar mode dock
	echo "1" >"$configFile"
else
	i3-msg bar mode invisible
	echo "0" >"$configFile"
fi