~aperezdc/wlr-toplevel-monitor

Monitors and prints the current Wayland toplevel information to stdout
92a9930d — Adrian Perez de Castro 11 months ago
Handle app_id and/or title being NULL
637868c8 — Adrian Perez de Castro 11 months ago
Add LICENSE file
a925538c — Adrian Perez de Castro 11 months ago
Add README file

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~aperezdc/wlr-toplevel-monitor
read/write
git@git.sr.ht:~aperezdc/wlr-toplevel-monitor

You can also use your local clone with git send-email.

#wlr-toplevel-monitor

Wayland client that uses the wlr-foreign-toplevel-management protocol to monitor the currently active toplevel surface and continuously writes a single line with its identifier and title to standard output every time it changes.

This can be used in combination with Eww's deflisten to show the active toplevel in a widget. For example:

(deflisten toplevel "wlr-toplevel-monitor")
(defwindow toplevel-bar
  :monitor 0
  :stacking "fg"
  :reserve (struts :distance "26px" :side "top")
  :geometry (geometry :height "26px" :anchor "top center")
  (label :text toplevel))