#!/usr/bin/env rc # dmenu wrapper, passing some options if they weren't given. # thanks to Cloudef for the original version font='DejaVu Sans Mono-9' nb='#080808' nf='#949494' sb='#b2b2b2' sf='#080808' opts=() while(! ~ $#* 0) { switch($1) { case -fn shift; font=$1 case -nb shift; nb=$1 case -nf shift; nf=$1 case -sb shift; sb=$1 case -sf shift; sf=$1 case * opts=($opts $1) } shift } /usr/bin/dmenu $opts -fn $font -nb $nb -nf $nf -sb $sb -sf $sf