add show windows script

This commit is contained in:
Ray Elliott 2020-11-05 20:05:12 +00:00
parent 8792a02e33
commit a385073cd3
1 changed files with 14 additions and 0 deletions

14
show_windows.sh Executable file
View File

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