diff options
| author | 2026-07-12 02:22:55 -0700 | |
|---|---|---|
| committer | 2026-07-12 02:22:55 -0700 | |
| commit | cf569704bd136f906dc298e2109905a4dc8a3d59 (patch) | |
| tree | bad1d5fb3dd1bb7776c23ef21a5d2eb4eed7a259 /sway | |
| parent | 50a9c51e35c3da7121b481f6853dcde5a881915f (diff) | |
| download | new-dotfiles-cf569704bd136f906dc298e2109905a4dc8a3d59.tar.gz new-dotfiles-cf569704bd136f906dc298e2109905a4dc8a3d59.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.scm | 2 |
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") |
