Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (20 sloc) 0.609 kB
#!/bin/bash
# dmenu wrapper, assing some options
# if they weren't given.
#
# TODO: integrate with monsterwm,
# maybe make monsterwm output some of it's
# settings as enviroiment variables?
main() {
local ARGS=
local FONT=
[[ "$@" != *-fn ]] && FONT="terminus 9"
[[ "$@" != *-nb ]] && ARGS="$ARGS -nb #1A1A1A"
[[ "$@" != *-nf ]] && ARGS="$ARGS -nf #EFEFEF"
[[ "$@" != *-sb ]] && ARGS="$ARGS -sb #1A1A1A"
[[ "$@" != *-sf ]] && ARGS="$ARGS -sf #F92672"
[[ -n "$FONT" ]] && {
/usr/bin/dmenu -fn "$FONT" $ARGS "$@"; return;
} || { /usr/bin/dmenu $ARGS "$@"; return; }
}
main "$@"
Jump to Line
Something went wrong with that request. Please try again.