summaryrefslogtreecommitdiff
path: root/sigils/home/services/hyprland.scm
diff options
context:
space:
mode:
Diffstat (limited to 'sigils/home/services/hyprland.scm')
-rw-r--r--sigils/home/services/hyprland.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/sigils/home/services/hyprland.scm b/sigils/home/services/hyprland.scm
index ecf7b0e..117d58e 100644
--- a/sigils/home/services/hyprland.scm
+++ b/sigils/home/services/hyprland.scm
@@ -274,7 +274,11 @@
name)))
(and (string-match regex name)
(access? name O_RDWR)))))
- (or (scandir directory) '())))
+ ;; Hyprland names its sockets according to the timestamp
+ ;; of creation of the Hyprland instance. With `reverse`,
+ ;; we pick up on the last Hyprland instance created
+ ;; (what we always want to do).
+ (or (reverse (scandir directory)) '())))
(define hyprland-instance
(or env-hyprland-instance