From a385073cd3a4772fc87b6bc4f5fb8e89b52750ac Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 5 Nov 2020 20:05:12 +0000 Subject: [PATCH] add show windows script --- show_windows.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 show_windows.sh 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