diff --git a/utils/gui-wrapper.sh b/utils/gui-wrapper.sh index ad4940c..c643636 100755 --- 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" < "$fb_sty" < "$fb_cfg" </dev/null & sleep 3; "$@"' utils/gui-wrapper.sh-subshell "$@" # Cleanup -rm "$bg" "$fb_cfg" \ No newline at end of file +rm "$bg" "$fb_cfg"