diff --git a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup index 3f2644a..91ecd80 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup +++ b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/startup @@ -7,6 +7,12 @@ # Change your keymap: xmodmap "/root/.Xmodmap" +# merge xresource settings +xrdb -merge ~/.Xresources + +# set background color +fbsetroot -solid '#000000' + # Applications you want to run with fluxbox. # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END. # @@ -23,9 +29,28 @@ if [ $? -eq 0 ]; then fbautostart fi +# Slax-local change: +# We need to postpone compton after fluxbox starts, else it won't set +# the transparency of toolbar properly... So we check the fehbg file, +# which is created by fluxbox at the phase when it sets background. +# Once the file exist, fluxbox-toolbar is already started + +SIGNALFILE=~/.fehbg + +# preload to cache +(compton --help; fluxbox --help) >/dev/null 2>/dev/null + +rm -f $SIGNALFILE + +( + while [ ! -e $SIGNALFILE ]; do + sleep 0.05 + done + compton --sw-opti -e 0.9 --fade-exclude 'role*="fluxbox-toolbar"' --opacity-rule '70:role*="fluxbox-toolbar"' --no-fading-destroyed-argb -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped' +) & + + # And last but not least we start fluxbox. # Because it is the last app you have to run it with ''exec'' before it. exec fluxbox -# or if you want to keep a log: -# exec fluxbox -log "/root/.fluxbox/log" diff --git a/Slax/debian/modules/03-desktop/rootcopy/root/.xinitrc b/Slax/debian/modules/03-desktop/rootcopy/root/.xinitrc index 40053e6..22df2f4 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/root/.xinitrc +++ b/Slax/debian/modules/03-desktop/rootcopy/root/.xinitrc @@ -1,3 +1 @@ -xrdb -merge ~/.Xresources -compton --sw-opti -e 0.9 --opacity-rule '70:WM_WINDOW_ROLE@:s *?= "fluxbox-toolbar"' --no-fading-destroyed-argb -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped' & startfluxbox diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect index eccc54b..3bb5c2c 100755 --- a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect +++ b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbappselect @@ -1,3 +1,3 @@ #!/bin/bash -xlunch --background /usr/share/wallpapers/wp.jpg --voidclickterminate --iconpadding 30 --textpadding 15 --paddingswap --leastmargin 20 --hidemissing +exec xlunch --background /usr/share/wallpapers/wp.jpg --voidclickterminate --iconpadding 30 --textpadding 15 --paddingswap --leastmargin 20 --hidemissing diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg b/Slax/debian/modules/03-desktop/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg index b63bd23..9c6d788 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg +++ b/Slax/debian/modules/03-desktop/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg @@ -57,32 +57,35 @@ window.maximize.pressed.pixmap: maxpr.png toolbar.height: 18 toolbar.bevelWidth: 0 toolbar.borderWidth: 3 -toolbar.borderColor: #333333 +toolbar.borderColor: #222222 toolbar: flat solid -toolbar.color: #333333 +toolbar.color: #222222 toolbar.clock: flat solid -toolbar.clock.color: #333333 +toolbar.clock.color: #222222 toolbar.clock.textColor: white toolbar.iconbar.empty: flat -toolbar.iconbar.empty.color: #333333 +toolbar.iconbar.empty.color: #222222 -toolbar.iconbar.focused.borderWidth: 0 +toolbar.iconbar.focused.borderWidth: 15 +toolbar.iconbar.focused.borderColor: #222222 toolbar.iconbar.focused: flat -toolbar.iconbar.focused.color: #666666 -toolbar.iconbar.focused.textColor: white +toolbar.iconbar.focused.color: #dddddd +toolbar.iconbar.focused.textColor: #000000 toolbar.iconbar.focused.justify: left -toolbar.iconbar.unfocused.borderWidth: 0 +toolbar.iconbar.unfocused.borderWidth: 15 +toolbar.iconbar.unfocused.borderColor: #444444 toolbar.iconbar.unfocused: flat -toolbar.iconbar.unfocused.color: #333333 +toolbar.iconbar.unfocused.color: #222222 toolbar.iconbar.unfocused.textColor: white toolbar.iconbar.unfocused.justify: left toolbar.button: flat solid -toolbar.button.borderWidth: 3 -toolbar.button.color: #333333 +toolbar.button.borderWidth: 13 +toolbar.button.borderColor: #222222 +toolbar.button.color: #222222 toolbar.button.picColor: #61CA00 toolbar.button.pressed: flat solid