fixups for startup notify
parent
1a4fab456c
commit
06b4385e5c
|
|
@ -1,9 +1,9 @@
|
||||||
[begin] (Desktop menu)
|
[begin] (Desktop menu)
|
||||||
|
|
||||||
[exec] (Terminal) { xterm -ls }
|
[exec] (Terminal) { fbstartupnotify && xterm -ls }
|
||||||
[exec] (Web browser) { chromium }
|
[exec] (Web browser) { fbstartupnotify && chromium }
|
||||||
[exec] (Text editor) { leafpad }
|
[exec] (Text editor) { fbstartupnotify && leafpad }
|
||||||
[exec] (Calculator) { qalculate }
|
[exec] (Calculator) { fbstartupnotify && qalculate }
|
||||||
[separator]
|
[separator]
|
||||||
[workspaces] (Workspaces)
|
[workspaces] (Workspaces)
|
||||||
[exec] (Exit) { fblogout }
|
[exec] (Exit) { fblogout }
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,9 @@ exec xlunch --input /etc/xlunch/logout.dsv --noprompt \
|
||||||
|
|
||||||
SND=/usr/share/sounds/shutdown.wav
|
SND=/usr/share/sounds/shutdown.wav
|
||||||
|
|
||||||
# blackout desktop
|
|
||||||
feh --bg-scale /usr/share/icons/locolor/16x16/apps/black.png
|
|
||||||
|
|
||||||
# play logout song
|
|
||||||
if [ "$LINE" != "" -a -r $SND ]; then
|
if [ "$LINE" != "" -a -r $SND ]; then
|
||||||
|
feh --bg-scale /usr/share/icons/locolor/16x16/apps/black.png
|
||||||
|
xsetroot -xcf /usr/share/icons/breeze_cursors/cursors/watch 37
|
||||||
aplay $SND &
|
aplay $SND &
|
||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,11 @@ SIZE=20
|
||||||
# Set cursor to wait. As soon as new window is detected, change cursor back
|
# Set cursor to wait. As soon as new window is detected, change cursor back
|
||||||
xsetroot -xcf $CURSORSDIR/left_ptr_watch $SIZE
|
xsetroot -xcf $CURSORSDIR/left_ptr_watch $SIZE
|
||||||
export WINDOWS="$(wmctrl -l)"
|
export WINDOWS="$(wmctrl -l)"
|
||||||
xsetroot -cursor_name left_ptr_watch
|
|
||||||
|
|
||||||
(
|
(
|
||||||
until diff -u <(echo "$WINDOWS") <(wmctrl -l) | egrep -q "^[+]"; do
|
until diff <(echo "$WINDOWS") <(wmctrl -l) | egrep -q "^[>]"; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
set_cursor_normal
|
|
||||||
xsetroot -xcf $CURSORSDIR/left_ptr $SIZE
|
xsetroot -xcf $CURSORSDIR/left_ptr $SIZE
|
||||||
) &
|
) &
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue