From b2271f6fa9cf93843eb50ddf8a9e4b45b6f249d8 Mon Sep 17 00:00:00 2001 From: Malcolm Ramsay Date: Wed, 30 Jan 2019 08:41:36 +1100 Subject: Add font-awesome codepoints to the dmenuunicode menu This adds the codepoints for font-awesome to ~/.fontawesome in the same format as ~/.emojii and modifies the grep search pattern in dmenuunicode to search both ~/.font-awesome and ~/.emojii including both in the list of values sent to dmenu. Removing the ~/.fontawesome file will revert to the previous behaviour. This requires the fontawesome-fonts package to be installed to get the additional codepoints. --- .scripts/i3cmds/dmenuunicode | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.scripts/i3cmds') diff --git a/.scripts/i3cmds/dmenuunicode b/.scripts/i3cmds/dmenuunicode index 4abf202..429e41e 100755 --- a/.scripts/i3cmds/dmenuunicode +++ b/.scripts/i3cmds/dmenuunicode @@ -5,7 +5,11 @@ # Must have xclip installed to even show menu. xclip -h >/dev/null || exit -chosen=$(grep -v "#" ~/.config/emoji | dmenu -i -l 20 -fn Monospace-18) +if [ -e ~/.config/fontawesome ]; then + chosen=$(grep -v "#" -h ~/.config/emoji ~/.config/fontawesome | dmenu -i -l 20 -fn Monospace-18) +else + chosen=$(grep -v "#" ~/.config/emoji | dmenu -i -l 20 -fn Monospace-18) +fi [ "$chosen" != "" ] || exit -- cgit v1.3.1