From f852bfd75bec7e53febeb3e753fce5752b423d97 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Tue, 3 Nov 2015 00:17:53 -0300 Subject: Update herbstluftwm --- herbstluftwm/bin/dmenu_wrapper | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 herbstluftwm/bin/dmenu_wrapper (limited to 'herbstluftwm/bin/dmenu_wrapper') diff --git a/herbstluftwm/bin/dmenu_wrapper b/herbstluftwm/bin/dmenu_wrapper new file mode 100755 index 0000000..7d9dccf --- /dev/null +++ b/herbstluftwm/bin/dmenu_wrapper @@ -0,0 +1,11 @@ +#!/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}" +} + +dmenu_run -b -p $(hostname) -nb $(get_xresources background) -sb $(get_xresources color4) -sf $(get_xresources foreground) -fn "$(get_xresources face | sed 's/ /\\ /g')" + -- cgit v1.2.3-70-g09d2