diff --git a/Slax/debian/modules/02-xorg b/Slax/debian/modules/02-xorg new file mode 100644 index 0000000..2f2a62b --- /dev/null +++ b/Slax/debian/modules/02-xorg @@ -0,0 +1,19 @@ + +apt-get update +apt-get install --yes --no-install-recommends xserver-xorg xinit xterm blackbox libxcursor1 breeze-cursor-theme + +# default cursor is white, force it +ln -sf /etc/X11/cursors/Breeze_Snow.theme /etc/alternatives/x-cursor-theme + + +cp cleanup /tmp +# install x11 server utils, apt-get would add cpp dependency, bullshit! +cd /tmp +apt-get download x11-xserver-utils +dpkg -x x11-xserver-utils*.deb /tmp/x11utils +cd /tmp/x11utils +cp -aR * / + +. /tmp/cleanup + +savechanges /02-xorg.sb diff --git a/Slax/debian/modules/03-desktop b/Slax/debian/modules/03-desktop new file mode 100644 index 0000000..29041c8 --- /dev/null +++ b/Slax/debian/modules/03-desktop @@ -0,0 +1,55 @@ +#!/bin/bash + +CWD=$(dirname $(readlink -f $0)) + +NAME=fluxbox +VERSION=1.3.5 + +# first install stock version + +apt-get update +apt-get install --no-install-recommends --yes $NAME feh +. ./cleanup +savechanges /$NAME-stock.sb + +cd / +unsquashfs /$NAME-stock.sb + +# then, we want to patch it to implement window resizing! +# so we will recompile whole package + +REBUILD=/tmp/$NAME-rebuild-$$ + +apt-get update +apt-get --yes build-dep $NAME + +mkdir -p $REBUILD +cd $REBUILD + +apt-get source $NAME + +cd $NAME-$VERSION + +cat $CWD/patches/fluxbox-slax.diff > debian/patches/fluxbox-slax.diff +echo fluxbox-slax.diff >> debian/patches/series + +dpkg-buildpackage -us -uc + +rm -Rf debian/$NAME/DEBIAN +rm -Rf debian/$NAME/usr/share/doc +rm -Rf debian/$NAME/usr/share/images + +cp debian/$NAME/usr/bin/fluxbox /squashfs-root/usr/bin + + +# add xlunch from sources +wget -O /tmp/xlunch.tar.gz --no-check-certificate https://github.com/Tomas-M/xlunch/archive/master.tar.gz +cd /tmp +tar -xf xlunch.tar.gz +cd xlunch-master +make +cp xlunch /squashfs-root/usr/bin +echo -e "#!/bin/bash\nxlunch --voidclickterminate --rootwindowbackground --iconpadding 30 --textpadding 15 --paddingswap --leastmargin 20" >/squashfs-root/usr/bin/fbmenu +chmod ugo+x /squashfs-root/usr/bin/fbmenu + +savechanges /03-desktop.sb /squashfs-root diff --git a/Slax/debian/modules/04-chromium b/Slax/debian/modules/04-chromium new file mode 100644 index 0000000..d5fe766 --- /dev/null +++ b/Slax/debian/modules/04-chromium @@ -0,0 +1,9 @@ + +apt-get update +apt-get install --yes --no-install-recommends chromium + +. ./cleanup + +rm -Rf /usr/share/icons/gnome/256x256 + +savechanges /04-chromium.sb diff --git a/Slax/debian/modules/cleanup b/Slax/debian/modules/cleanup new file mode 120000 index 0000000..89d1336 --- /dev/null +++ b/Slax/debian/modules/cleanup @@ -0,0 +1 @@ +../cleanup \ No newline at end of file diff --git a/Slax/debian/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg b/Slax/debian/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg index 59b10be..b91bbca 100644 --- a/Slax/debian/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg +++ b/Slax/debian/rootcopy/usr/share/fluxbox/styles/Slax/theme.cfg @@ -81,7 +81,7 @@ toolbar.iconbar.unfocused.justify: left toolbar.button: flat solid toolbar.button.color: #333333 -toolbar.button.picColor: #dddddd +toolbar.button.picColor: #61CA00 toolbar.button.pressed: flat solid ! menu