mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Take advantage of xdo's *wait for match* option
This commit is contained in:
parent
614a56b753
commit
e621b9859d
1 changed files with 2 additions and 8 deletions
|
@ -17,13 +17,7 @@ clock -sf 'S%a %H:%M' > "$PANEL_FIFO" &
|
|||
|
||||
panel_bar < "$PANEL_FIFO" | lemonbar -a 32 -n "$PANEL_WM_NAME" -g x$PANEL_HEIGHT -f "$PANEL_FONT" -F "$COLOR_DEFAULT_FG" -B "$COLOR_DEFAULT_BG" | sh &
|
||||
|
||||
wid=$(xdo id -a "$PANEL_WM_NAME")
|
||||
tries_left=20
|
||||
while [ -z "$wid" -a "$tries_left" -gt 0 ] ; do
|
||||
sleep 0.05
|
||||
wid=$(xdo id -a "$PANEL_WM_NAME")
|
||||
tries_left=$((tries_left - 1))
|
||||
done
|
||||
[ -n "$wid" ] && xdo above -t "$(xdo id -N Bspwm -n root | sort | head -n 1)" "$wid"
|
||||
wid=$(xdo id -m -a "$PANEL_WM_NAME")
|
||||
xdo above -t "$(xdo id -N Bspwm -n root | sort | head -n 1)" "$wid"
|
||||
|
||||
wait
|
||||
|
|
Loading…
Add table
Reference in a new issue