From 836bd06d074b3a80c567bbc1bfcd19d9d02e51b8 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Wed, 9 Jan 2019 23:06:06 +0100 Subject: [PATCH] bin/dmenu: get font from env variable DMENU_FONT --- .profile | 7 +++++++ bin/dmenu | 5 ++++- local/.profile.vriska | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 local/.profile.vriska diff --git a/.profile b/.profile index 3b4b585..1053232 100644 --- a/.profile +++ b/.profile @@ -1,5 +1,9 @@ #!/bin/sh +# +# ~/.profile (includes ~/.profile.local) +# + # SSH key agent is started by systemd user export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.sock" @@ -25,3 +29,6 @@ fi # Wine: do not change filetype associations export WINEDLLOVERRIDES=winemenubuilder.exe=d +# Include host-specific .profile +[ -f ~/.profile.local ] && source ~/.profile.local + diff --git a/bin/dmenu b/bin/dmenu index d596ef9..e0ecd2a 100755 --- a/bin/dmenu +++ b/bin/dmenu @@ -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 "$@" diff --git a/local/.profile.vriska b/local/.profile.vriska new file mode 100644 index 0000000..7d39c19 --- /dev/null +++ b/local/.profile.vriska @@ -0,0 +1,7 @@ +# +# ~/.profile.local (included by ~/.profile) +# + +# Set dmenu font +export DMENU_FONT='Liberation Mono:12' +