#!/bin/bash # Wrapper around dmenu for some problems with the loading of the font. get_xresources() { arr=( $(xrdb -q | grep $1 | head -1) ) echo -n "${arr[@]:1}" } echo "'$(get_xresources font | sed 's/ /\\ /g')'" > ~/lgo dmenu_run -b -p $(hostname) -nb $(get_xresources background) -sb $(get_xresources color4) -sf $(get_xresources background) -fn "$(get_xresources face | sed 's/ /\\ /g')"