bin/dmenu: get font from env variable DMENU_FONT
This commit is contained in:
parent
5c7f1a669f
commit
836bd06d07
7
.profile
7
.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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 "$@"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# ~/.profile.local (included by ~/.profile)
|
||||
#
|
||||
|
||||
# Set dmenu font
|
||||
export DMENU_FONT='Liberation Mono:12'
|
||||
|
||||
Loading…
Reference in New Issue