From 96d366b03ca5f1d657203d29a8a2ef7398b501a6 Mon Sep 17 00:00:00 2001 From: therbron Date: Wed, 8 Jul 2020 16:22:13 +0200 Subject: [PATCH] Change picom conf location and add launching script --- .config/i3/config | 2 +- .config/picom/launch.sh | 10 ++++++++++ .config/{ => picom}/picom.conf | 0 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 .config/picom/launch.sh rename .config/{ => picom}/picom.conf (100%) diff --git a/.config/i3/config b/.config/i3/config index d96ac33..2152ffc 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -572,4 +572,4 @@ exec --no-startup-id $i3-wm.program.3 # Start polybar exec_always --no-startup-id ~/.config/polybar/launch.sh & exec_always --no-startup-id feh --bg-scale ~/Images/skyscape-4.jpg -exec_always --no-startup-id picom --experimental-backends +exec_always --no-startup-id ~/.config/picom/launch.sh & diff --git a/.config/picom/launch.sh b/.config/picom/launch.sh new file mode 100755 index 0000000..7e7dede --- /dev/null +++ b/.config/picom/launch.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh + +# Terminate already running picom instances +killall -q picom + +# Wait until the processes have been shut down +while pgrep -u $UID -x picom >/dev/null; do sleep 1; done + +# Start picom +picom --experimental-backends diff --git a/.config/picom.conf b/.config/picom/picom.conf similarity index 100% rename from .config/picom.conf rename to .config/picom/picom.conf