summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds/dmenuunicode
diff options
context:
space:
mode:
authorMalcolm Ramsay <malramsay64@gmail.com>2019-01-30 08:41:36 +1100
committerMalcolm Ramsay <malramsay64@gmail.com>2019-05-18 13:44:13 +1000
commitb2271f6fa9cf93843eb50ddf8a9e4b45b6f249d8 (patch)
tree8c1031acb64021bedd52db8f769c590d131d588e /.scripts/i3cmds/dmenuunicode
parentd8bf08db1ce13cd0584421922267647e6ed9cde3 (diff)
downloadeibhear-b2271f6fa9cf93843eb50ddf8a9e4b45b6f249d8.tar.gz
eibhear-b2271f6fa9cf93843eb50ddf8a9e4b45b6f249d8.tar.zst
eibhear-b2271f6fa9cf93843eb50ddf8a9e4b45b6f249d8.zip
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.
Diffstat (limited to '.scripts/i3cmds/dmenuunicode')
-rwxr-xr-x.scripts/i3cmds/dmenuunicode6
1 files changed, 5 insertions, 1 deletions
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