From 4191f0871bf08d717c3f65084db2785acc336814 Mon Sep 17 00:00:00 2001 From: bluepython508 <16466646+bluepython508@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:10:29 +0000 Subject: [PATCH] Add status-display for waybar --- main.janet | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main.janet b/main.janet index f8d0546..f6f02a5 100644 --- a/main.janet +++ b/main.janet @@ -418,6 +418,18 @@ (defn mark-dirty [] (:manage-dirty (registry "river_window_manager_v1"))) +(defn status-display [] + (def seat (first (wm :seats))) + (def output (seat :focused-output)) + (string + ":" (output :tag-main) + (case (output :tag-offload) + :comma "<" + :period ">" + "") + " " + (string/join (map |(string ":" $) (output :tags-other))))) + (defn action/target-in [obj list dir] (let [i (or (index-of obj list) -1)]