From bad45b937d7c651e0dd645a694ad5b03f725bc91 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Oct 2023 19:07:58 +0200 Subject: [PATCH] river: Do not always restart kanshi with river Kanshi used to be restarted every time river would be reloaded. This is not desired however, as restarting river would also kill the kanshi daemon, and subsequently reload it, reseting any custom kanshi output layouts or options set. With this commit kanshi only gets started if it is not already running through river (i.e. on first boot most of the time). --- desktop/.config/river/init | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index bc27a86..ebe5863 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -242,6 +242,9 @@ done setxkbmap -option "compose:menu" +# start dynamic display configuration +[ "$(pidof kanshi)" -eq 0 ] || riverctl spawn kanshi + # set a nice wallpaper if exist swww; then riverctl spawn "swww init" @@ -258,10 +261,6 @@ fi killall waybar riverctl spawn waybar -# start dynamic display configuration -killall kanshi -riverctl spawn kanshi - # start redshift-like sundown warming using current location or standard values killall wlsunset loc=$(curl ipinfo.io | grep -e '"loc": ' | sed -e 's/^.*"loc": "\(.*\)",$/\1/')