diff options
| author | Josh Rahm <rahm@google.com> | 2022-01-10 14:57:47 -0700 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2022-01-10 14:57:47 -0700 |
| commit | 0e4b0187167e43c3c00371cbcca5cc892521bdb2 (patch) | |
| tree | 97677083c9b2a6a33d98152066ad706dafc09769 | |
| parent | 8f4949e51a5b4c563d4e5fc9ddf7123561cdf234 (diff) | |
| download | rde-0e4b0187167e43c3c00371cbcca5cc892521bdb2.tar.gz rde-0e4b0187167e43c3c00371cbcca5cc892521bdb2.tar.bz2 rde-0e4b0187167e43c3c00371cbcca5cc892521bdb2.zip | |
Add emoticon-select.
It's the same as emoji select, but with emoticons.
Key bound to <C-z>E (capital E, as opposed to <C-z>e for emojis)
| -rwxr-xr-x | extras/HOME/.local/bin/emoticon-select.sh | 13 | ||||
| -rw-r--r-- | extras/HOME/.xmonad/emoticons.txt | 16 | ||||
| -rw-r--r-- | src/Internal/Keys.hs | 3 |
3 files changed, 31 insertions, 1 deletions
diff --git a/extras/HOME/.local/bin/emoticon-select.sh b/extras/HOME/.local/bin/emoticon-select.sh new file mode 100755 index 0000000..bf10318 --- /dev/null +++ b/extras/HOME/.local/bin/emoticon-select.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if ( which rofi ) ; then + menu=(rofi -dmenu -i -p "Select Emoticon: " -font "Fira Code 32") +else + menu=(dmenu -fn NotoSans:size=24 -i -nf "#ffff88" -sb "#ffff88" -p "Select Emoticon" -l 12 -dim 0.4) +fi + + +selection="$("${menu[@]}" < $HOME/.xmonad/emoticons.txt)" +emoticon="$(echo ${selection/*-})" + +echo "$emoticon" | xclip -selection clipboard diff --git a/extras/HOME/.xmonad/emoticons.txt b/extras/HOME/.xmonad/emoticons.txt new file mode 100644 index 0000000..40b83c5 --- /dev/null +++ b/extras/HOME/.xmonad/emoticons.txt @@ -0,0 +1,16 @@ +Deal with it - (•_•) ( •_•)>⌐■-■ (⌐■_■) +Deal with it. - (▀̿Ĺ̯▀̿ ̿) +Do It Right - (☞゚ヮ゚)☞ +Do it Left - ☜(゚ヮ゚☜) +Happy Gary - ᕕ( ᐛ )ᕗ +Happy Lenny - ( ͡ᵔ ͜ʖ ͡ᵔ ) +IDFK - ¯\(°_o)/¯ +Lenny - ( ͡° ͜ʖ ͡°) +Mad Lenny - ( ͡° ʖ̯ ͡°) +Person Flip - (╯°□°)╯︵ (\ .o.)\ +Shrug - ¯\_(ツ)_/¯ +Smiley - :-) +Tableback - ┬─┬ノ(ಠ_ಠノ) +Tableflip - (╯°□°)╯︵ ┻━┻ +Unamused - ಠ_ಠ +Y u no - ლ(ಠ益ಠ)ლ diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index fc0244b..bf9b62c 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -231,8 +231,9 @@ keymap = runKeys $ do bind xK_c $ do shiftMod CopyWindow.killAllOtherCopies - bind xK_e $ + bind xK_e $ do (justMod -|- noMod) $ spawn "emoji-select.sh" + (shiftMod -|- rawMask shiftMask) $ spawn "emoticon-select.sh" bind xK_a $ (justMod -|- noMod) $ spawn "set-sink.sh" |