www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit dede351e63843e964229d0ac52a10f24f8de5347
parent f1b58e16c257414d01bbf869c7834bccc254cb1d
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Tue,  3 Jul 2018 19:59:35 +0200

Fix fluxbox wallpaper (and change it to be a checkerboard)

Diffstat:
Mutils/gui-wrapper.sh | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/utils/gui-wrapper.sh b/utils/gui-wrapper.sh @@ -7,17 +7,23 @@ shift # the following arguments are the program to execute and its arg bg="$(mktemp --suffix='.png')" fb_cfg="$(mktemp --suffix='fluxbox.cfg')" +fb_sty="$(mktemp --suffix='fluxbox.style')" # Create solid black background -convert -size 16x16 xc:black "$bg" +convert -size "$(echo "$resolution" | cut -d 'x' -f1-2)" tile:pattern:checkerboard "$bg" # Create minimalist fluxbox configuration -cat > "$fb_cfg" <<EOF +cat > "$fb_sty" <<EOF background: fullscreen background.pixmap: $bg EOF +cat > "$fb_cfg" <<EOF +session.styleFile: $fb_sty +EOF + + xvfb-run -a --server-args="-screen 0 ${resolution}" sh -c 'fluxbox -rc '"$fb_cfg"' 2>/dev/null & sleep 3; "$@"' utils/gui-wrapper.sh-subshell "$@" # Cleanup -rm "$bg" "$fb_cfg" -\ No newline at end of file +rm "$bg" "$fb_cfg"