diff --git a/show_windows.sh b/show_windows.sh new file mode 100755 index 0000000..ebc483c --- /dev/null +++ b/show_windows.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +bspc query -D -d .occupied | while read _desktop_id ; do + bspc query -D -d $_desktop_id --names + + 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)" + echo " $_wm_class: $_title" + done + + echo +done