bin/dmenu: get font from env variable DMENU_FONT

This commit is contained in:
Lexi / Zoe 2019-01-09 23:06:06 +01:00
parent 5c7f1a669f
commit 836bd06d07
3 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,7 @@
#!/bin/bash
exec /usr/bin/dmenu -fn 'Liberation Mono:12' -i "$@"
fontarg=()
[[ $DMENU_FONT ]] && fontarg=(-fn "$DMENU_FONT")
exec /usr/bin/dmenu "${fontarg[@]}" -i "$@"