fluxbox styling and autostart

This commit is contained in:
TomasM
2017-11-02 12:14:02 -04:00
parent 84ead7218f
commit 436e02aa49
4 changed files with 42 additions and 16 deletions
@@ -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"
@@ -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