Skip to content

Add existing fg and bg options to run-medley #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion run-medley
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
# Syntax: run-medley [-nogreet][-xns][-noxns] [-geometry pixelgeometry]
# [-display xdisplay-device] [-screensize pixelgeometry]
# [-fg | -foreground hex-color-rgb]
# [-bg | -background hex-color-rgb]
# [-raw] [-t xtimeout][-prog executable-program]
# [-vmem savevmemfilename] |
# [-m memorylimit] [-kbd keyboardtype] [-key key]
Expand Down Expand Up @@ -54,6 +56,8 @@ set mem="-m 256" # Default, has to be set
# MBA screensize
set geometry="-g 1440x900"
set screensize="-sc 1440x900"
set fg=""
set bg=""
setenv LDEKBDTYPE x
set ICONSPEC=" "

Expand Down Expand Up @@ -113,6 +117,16 @@ if ($#argv != 0) then
set screensize="-sc $2"
shift
breaksw
case "-foreground":
case "-fg":
set fg="-fg $2"
shift
breaksw
case "-background":
case "-bg":
set bg="-bg $2"
shift
breaksw
case "-display":
setenv DISPLAY $2
shift
Expand Down Expand Up @@ -205,7 +219,7 @@ setenv PATH $MAIKODIR/`osversion`.`machinetype`:"$PATH"
popd

# if ${?DISPLAY} then # we are running under X
$prog $mem $geometry $screensize $ICONSPEC
$prog $mem $geometry $screensize $fg $bg $ICONSPEC
# else $prog $mem
endif
breaksw
Expand Down