Add status-display for waybar

This commit is contained in:
bluepython508
2026-02-12 15:10:29 +00:00
parent 599a6aedcf
commit 4191f0871b

View File

@@ -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)]