2020-11-05 20:05:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
bspc query -D -d .occupied | while read _desktop_id ; do
|
2020-11-05 20:42:41 +00:00
|
|
|
_desktop_name="$(bspc query -D -d $_desktop_id --names):"
|
2020-11-05 20:05:12 +00:00
|
|
|
|
|
|
|
bspc query -N -d "$_desktop_id" -n .window | while read _node_id ; do
|
|
|
|
_node_id="$(bspc query -N -n $_node_id)"
|
|
|
|
_title="$(xtitle $_node_id)"
|
|
|
|
_wm_class="$(xprop -id $_node_id | grep WM_CLASS | cut -d\" -f2)"
|
2020-11-05 20:42:41 +00:00
|
|
|
printf "%-6s %-15s %.55s\n" "$_desktop_name" "$_wm_class" "$_title"
|
|
|
|
_desktop_name=''
|
2020-11-05 20:05:12 +00:00
|
|
|
done
|
2020-11-05 20:54:04 +00:00
|
|
|
echo ""
|
2020-11-05 20:05:12 +00:00
|
|
|
done
|