You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
391 B
18 lines
391 B
#!/bin/bash
|
|
|
|
CURSORSDIR=/usr/share/icons/breeze_cursors/cursors/
|
|
SIZE=16
|
|
|
|
# Set cursor to wait. As soon as new window is detected, change cursor back
|
|
xsetroot -xcf $CURSORSDIR/left_ptr_watch $SIZE
|
|
export WINDOWS="$(wmctrl -l)"
|
|
|
|
(
|
|
sleep 0.2
|
|
until diff <(echo "$WINDOWS") <(wmctrl -l) | egrep -q "^[>]"; do
|
|
sleep 0.5
|
|
done
|
|
xsetroot -xcf $CURSORSDIR/left_ptr $SIZE
|
|
) &
|
|
|
|
exit 0
|
|
|