diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2021-11-29 15:06:45 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:45 -0600 |
| commit | d8aee576d5725236ba51037fd6f96f7121f2db03 (patch) | |
| tree | ecd45122eb82aa599d982c34f396fe9142a52502 | |
| parent | 8486ce27943b1c0460bfcd6d93ed84d2b3c5afb5 (diff) | |
| download | rde-d8aee576d5725236ba51037fd6f96f7121f2db03.tar.gz rde-d8aee576d5725236ba51037fd6f96f7121f2db03.tar.bz2 rde-d8aee576d5725236ba51037fd6f96f7121f2db03.zip | |
Added Emoji select.
The fonts still leave much to be desired. Unfortunately dmenu2 does not
support fallback fonts from what I can tell, and dmenu1 doesn't support
all the nice features dmenu2 supports. Oh well.
| -rwxr-xr-x | extras/HOME/.local/bin/emoji-select.sh | 9 | ||||
| -rw-r--r-- | extras/HOME/.xmonad/unicode.gz | bin | 0 -> 297505 bytes | |||
| -rw-r--r-- | src/Internal/Keys.hs | 5 |
3 files changed, 13 insertions, 1 deletions
diff --git a/extras/HOME/.local/bin/emoji-select.sh b/extras/HOME/.local/bin/emoji-select.sh new file mode 100755 index 0000000..2eeeb64 --- /dev/null +++ b/extras/HOME/.local/bin/emoji-select.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +selection="$( + zcat $HOME/.xmonad/unicode.gz | sed 's@\([^;]\+\);\([^;]\+\).*@\1 \2 @g' | + dmenu -fn NotoSans:size=24 -i -nf "#ffff88" -sb "#ffff88" -p "Select Character" -l 12 -dim 0.4)" + +emoji="${selection%% *}" + +echo "$emoji" | xclip -selection clipboard diff --git a/extras/HOME/.xmonad/unicode.gz b/extras/HOME/.xmonad/unicode.gz Binary files differnew file mode 100644 index 0000000..5dd0826 --- /dev/null +++ b/extras/HOME/.xmonad/unicode.gz diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index 2905ba0..d4a856c 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -229,7 +229,10 @@ keymap = runKeys $ do (show (map ord str)) bind xK_c $ do - shiftMod $ CopyWindow.killAllOtherCopies + shiftMod CopyWindow.killAllOtherCopies + + bind xK_e $ + (justMod -|- noMod) $ spawn "emoji-select.sh" -- Double-tap Z to toggle zoom. |