DSK, tint2: Migrate to tint2

Now all of my dependencies are in the Debian repos\!
This commit is contained in:
2018-11-16 22:56:06 -06:00
parent 7c13b0779c
commit 1910d2b26c
4 changed files with 374 additions and 35 deletions

View File

@@ -1,35 +0,0 @@
#! /usr/bin/env bash
# Make sure we have our xrdb stuff going
if which xrdbupdate > /dev/null 2>&1; then
xrdbupdate > /dev/null 2>&1
fi
# Restack compatibility
if pgrep -U "$UID" bspwm > /dev/null 2>&1; then
export PB_WM_RESTACK="bspwm"
fi
# Spawn bars on the primary monitor
export PB_MONITOR=$(xrandr -q | awk '/primary/{print $1}')
polybar -r primary &
polybar -r primary-2 &
# Spawn more for each secondary
export secondary_monitors=$(xrandr -q | grep ' connected' | grep -v 'primary' | awk '{print $1}')
if [ "$secondary_monitors" == "" ]; then
return 0
fi
for monitor in $secondary_monitors; do
PB_MONITOR=$monitor
polybar -r secondary &
polybar -r secondary-2 &
done
# Trap our exit
die() {
pkill -P "$PID"
}
trap die EXIT
# And wait
wait

2
.config/dsk/run/tint2 Executable file
View File

@@ -0,0 +1,2 @@
#! /usr/bin/env bash
tint2