bspwm/monitor_windows.sh

13 lines
194 B
Bash
Raw Normal View History

2020-11-05 21:46:55 +00:00
#!/bin/sh
2020-11-08 20:36:03 +00:00
tput civis
trap 'tput cnorm && exit' SIGINT
2020-11-05 21:46:55 +00:00
bspc subscribe node_focus desktop_focus | while read -a msg ; do
2020-11-08 20:32:54 +00:00
_output="$(show-windows "$@")"
2020-11-05 21:46:55 +00:00
clear
2020-11-05 21:52:25 +00:00
echo "$_output"
2020-11-05 21:46:55 +00:00
done
2020-11-08 20:36:03 +00:00
tput cnorm