summaryrefslogtreecommitdiffstats
path: root/.config/i3/launch_compton.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3/launch_compton.sh')
-rwxr-xr-x.config/i3/launch_compton.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/i3/launch_compton.sh b/.config/i3/launch_compton.sh
new file mode 100755
index 0000000..1b2f5a1
--- /dev/null
+++ b/.config/i3/launch_compton.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Terminate already running bar instances
+killall -q compton
+
+# Wait until the processes have been shut down
+while pgrep -u $UID -x compton >/dev/null; do sleep 1; done
+
+# Launch Polybar, using default config location ~/.config/polybar/config
+compton &
+
+echo "compton launched..."