improve formatting
This commit is contained in:
parent
f2e3ca90c4
commit
0e98c37fef
|
@ -1,14 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
bspc query -D -d .occupied | while read _desktop_id ; do
|
bspc query -D -d .occupied | while read _desktop_id ; do
|
||||||
bspc query -D -d $_desktop_id --names
|
_desktop_name="$(bspc query -D -d $_desktop_id --names):"
|
||||||
|
|
||||||
bspc query -N -d "$_desktop_id" -n .window | while read _node_id ; do
|
bspc query -N -d "$_desktop_id" -n .window | while read _node_id ; do
|
||||||
_node_id="$(bspc query -N -n $_node_id)"
|
_node_id="$(bspc query -N -n $_node_id)"
|
||||||
_title="$(xtitle $_node_id)"
|
_title="$(xtitle $_node_id)"
|
||||||
_wm_class="$(xprop -id $_node_id | grep WM_CLASS | cut -d\" -f2)"
|
_wm_class="$(xprop -id $_node_id | grep WM_CLASS | cut -d\" -f2)"
|
||||||
echo " $_wm_class: $_title"
|
printf "%-6s %-15s %.55s\n" "$_desktop_name" "$_wm_class" "$_title"
|
||||||
|
_desktop_name=''
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue