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,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

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 "$@"

7
local/.profile.vriska Normal file
View File

@ -0,0 +1,7 @@
#
# ~/.profile.local (included by ~/.profile)
#
# Set dmenu font
export DMENU_FONT='Liberation Mono:12'