summaryrefslogtreecommitdiffstats
path: root/.config/i3/launch_picom.sh
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-10 02:43:27 +0100
committerJokler <jokler@protonmail.com>2020-01-10 02:43:27 +0100
commit767fbcb719e941d3b9a09b68c0a1c63dd2a57d30 (patch)
tree5588dcbcc45453b4631bf23af1d8fefac61b36fc /.config/i3/launch_picom.sh
parentd6efe4e57f9b5f72e64bdf633cc4b94f96dd574e (diff)
downloaddotfiles-767fbcb719e941d3b9a09b68c0a1c63dd2a57d30.tar.gz
dotfiles-767fbcb719e941d3b9a09b68c0a1c63dd2a57d30.zip
Switch from compton to picom
Diffstat (limited to '.config/i3/launch_picom.sh')
-rwxr-xr-x.config/i3/launch_picom.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/i3/launch_picom.sh b/.config/i3/launch_picom.sh
new file mode 100755
index 0000000..1abc17e
--- /dev/null
+++ b/.config/i3/launch_picom.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Terminate already running bar instances
+killall -q picom
+
+# Wait until the processes have been shut down
+while pgrep -u $UID -x picom >/dev/null; do sleep 1; done
+
+# Launch Polybar, using default config location ~/.config/polybar/config
+picom --invert-color-include '(class_g="weka-gui-GUIChooser")' &
+
+echo "picom launched..."