diff options
| author | 2026-07-12 23:27:23 -0700 | |
|---|---|---|
| committer | 2026-08-26 23:04:25 -0700 | |
| commit | e5922f62a65bbaa0a0c3ae74b29fb3a928193e9d (patch) | |
| tree | af415ff2b4bf1e383aeef588f625f0cf0ee89153 | |
| parent | d88b8557aa5eb0c0c42c733081d75c35a4ff038e (diff) | |
| download | new-dotfiles-e5922f62a65bbaa0a0c3ae74b29fb3a928193e9d.tar.gz new-dotfiles-e5922f62a65bbaa0a0c3ae74b29fb3a928193e9d.zip | |
sway: Listen to events from Sway
| -rw-r--r-- | sway/.config/sway/init.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/.config/sway/init.scm b/sway/.config/sway/init.scm index b11fc48..bcf33b8 100644 --- a/sway/.config/sway/init.scm +++ b/sway/.config/sway/init.scm @@ -1,4 +1,5 @@ -(use-modules (guile-swayer)) +(use-modules (guile-swayer) + (srfi srfi-18)) (system (format #f "pgrep -f '.*guile.*sway/init.scm' | grep -v ~a | while read mypid; do kill $mypid; done" (getpid))) @@ -23,3 +24,6 @@ (sway-bindsym "Mod4+8" "workspace number 8") (sway-bindsym "Mod4+9" "workspace number 9") (sway-bindsym "Mod4+0" "workspace number 10") + +(sway-start-event-listener-thread) +(thread-join! SWAY-LISTENER-THREAD) |
