aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-07-12 02:22:55 -0700
committerGravatar Tom Willemse2026-08-26 23:04:25 -0700
commit962b66d736163a0a2140342ea196ea7893776bae (patch)
tree9f5ef32cb87ff05614a8695a1e2389218b78b548 /sway
parent1bf5a869c5c5896fe75e796af7fcf9c70c53b6a0 (diff)
downloadnew-dotfiles-962b66d736163a0a2140342ea196ea7893776bae.tar.gz
new-dotfiles-962b66d736163a0a2140342ea196ea7893776bae.zip
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.
Diffstat (limited to 'sway')
-rw-r--r--sway/.config/sway/init.scm2
1 files changed, 2 insertions, 0 deletions
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")