Summary Files Commits Branches @commit @diff @stats
path: root / openbox_de / bin / start-panels
blob: 9184f6c7aa311e4954fc2a379ec0fabeef4e06ef (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
#!/bin/bash

pkill tint2 >/dev/null 2>&1 || true

local_tint2() {
	workspace="$1"
	shift

	tint2 "$@" >/dev/null 2>&1 &

	wid=""
	while [ -z "$wid" ]
	do
		wid="$(wmctrl -l | awk '$2 == -1 && $4 == "tint2" && $5 == "" { print $1 }')"
		sleep 0.2
	done

	sleep 0.1
	wmctrl -i -r "$wid" -t "$workspace"
}

local_tint2 0 -c $HOME/.config/tint2/tint2rc
local_tint2 1 -c $HOME/.config/tint2/programmer.tint2rc
local_tint2 2 -c $HOME/.config/tint2/work.tint2rc
local_tint2 3 -c $HOME/.config/tint2/gaming.tint2rc

tint2 -c $HOME/.config/tint2/switcher.tint2rc >/dev/null 2>&1 &