bspwm/show_windows.sh

15 lines
370 B
Bash
Executable File

#!/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