aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextras/HOME/.local/bin/emoticon-select.sh13
-rw-r--r--extras/HOME/.xmonad/emoticons.txt16
-rw-r--r--src/Internal/Keys.hs3
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"