diff --git a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup index 6aa2154..e9e4f78 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup +++ b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup @@ -10,12 +10,16 @@ xmodmap "/root/.Xmodmap" # merge xresource settings xrdb -merge ~/.Xresources -# set background color -xsetroot -solid '#000000' -cursor_name watch +# set background color and big wait mouse cursor +xsetroot -solid '#000000' +xsetroot -xcf /usr/share/icons/breeze_cursors/cursors/watch 37 # preload compton and fluxbox to cache (compton --help; fluxbox --help) >/dev/null 2>/dev/null +# preload wallpaper +cat /usr/share/wallpapers/wp.jpg > /dev/null 2>/dev/null + # Keep black screen for first two seconds while the sound plays. # This slows startup by 2 seconds, but it is nice effect. SND=/usr/share/sounds/startup.wav diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect index 79bc703..c93d486 100755 --- a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect +++ b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect @@ -7,6 +7,8 @@ exec xlunch --input /etc/xlunch/entries.dsv \ --highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \ --outputonly | while read LINE; do + fbstartupnotify + cmd="$(echo $LINE | sed -r "s/\\s.*//")" whi="$(which $cmd | head -n 1)" Xdep=$(ldd $whi | grep libX11) diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fblogout b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fblogout index 11695e1..d4e0722 100755 --- a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fblogout +++ b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fblogout @@ -9,8 +9,10 @@ exec xlunch --input /etc/xlunch/logout.dsv --noprompt \ 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 aplay $SND & sleep 1 diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbstartupnotify b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbstartupnotify new file mode 100755 index 0000000..18a79ec --- /dev/null +++ b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbstartupnotify @@ -0,0 +1,19 @@ +#!/bin/bash + +CURSORSDIR=/usr/share/icons/breeze_cursors/cursors/ +SIZE=20 + +# 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)" +xsetroot -cursor_name left_ptr_watch + +( + until diff -u <(echo "$WINDOWS") <(wmctrl -l) | egrep -q "^[+]"; do + sleep 0.1 + done + set_cursor_normal + xsetroot -xcf $CURSORSDIR/left_ptr $SIZE +) & + +exit 0