Compare commits
2 Commits
224e96b603
...
81e61cefd5
Author | SHA1 | Date |
---|---|---|
Ray Elliott | 81e61cefd5 | |
Ray Elliott | 2e3d8d187a |
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
tput civis
|
||||||
|
trap 'tput cnorm && exit' SIGINT
|
||||||
|
|
||||||
bspc subscribe node_focus desktop_focus | while read -a msg ; do
|
bspc subscribe node_focus desktop_focus | while read -a msg ; do
|
||||||
_output="$(show-windows)"
|
_output="$(show-windows "$@")"
|
||||||
clear
|
clear
|
||||||
echo "$_output"
|
echo "$_output"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
tput cnorm
|
||||||
|
|
|
@ -5,6 +5,7 @@ _ignore_desktop="$1"
|
||||||
_focused_node_id="$(bspc query -N -n .focused)"
|
_focused_node_id="$(bspc query -N -n .focused)"
|
||||||
bspc query -D -d .occupied | while read _desktop_id ; do
|
bspc query -D -d .occupied | while read _desktop_id ; do
|
||||||
_desktop_name="$(bspc query -D -d $_desktop_id --names)"
|
_desktop_name="$(bspc query -D -d $_desktop_id --names)"
|
||||||
|
echo ""
|
||||||
|
|
||||||
if [ "$_ignore_desktop" != "$_desktop_name" ] ; then
|
if [ "$_ignore_desktop" != "$_desktop_name" ] ; then
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue