dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

dmenu_themed (365B)


      1 #!/bin/sh
      2 
      3 get_xresources_color() {
      4 	rg "\*\.$1:" ~/.Xresources | awk '{ print $2 }'
      5 }
      6 
      7 dmenuopts="-nb $(get_xresources_color background)\
      8 	-nf $(get_xresources_color foreground) \
      9 	-sb $(get_xresources_color foreground) \
     10 	-sf $(get_xresources_color background) \
     11 	-fn PragmataPro-9"
     12 
     13 if [ "$1" = "run" ]; then
     14 	dmenu_run $dmenuopts
     15 else
     16 	dmenu $dmenuopts "$@"
     17 fi