From 3fa666f957a14a43d81435aafb3c9994f79e3452 Mon Sep 17 00:00:00 2001 From: Sisiutl Date: Sat, 1 Feb 2025 14:47:15 +0100 Subject: reverse in socket detection --- sigils/home/services/hyprland.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sigils') 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 -- cgit v1.2.3