From 962b66d736163a0a2140342ea196ea7893776bae Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 12 Jul 2026 02:22:55 -0700 Subject: guile-swayer: Run kill from guile, not sway I can't figure out why, but I can't get the sway config to execute both the pkill and the guile commands. But by running it in Guile it still works. --- sway/.config/sway/init.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway') diff --git a/sway/.config/sway/init.scm b/sway/.config/sway/init.scm index aa6c3dd..087f003 100644 --- a/sway/.config/sway/init.scm +++ b/sway/.config/sway/init.scm @@ -1,5 +1,7 @@ (use-modules (guile-swayer)) +(system (format #f "pgrep -f '.*guile.*sway/init.scm' | grep -v ~a | while read mypid; do kill $mypid; done" (getpid))) + (sway-connect-sockets!) (sway-bindsym "Mod4+d" "exec wmenu-run") -- cgit v1.3-2-g0d8e