aboutsummaryrefslogtreecommitdiff
path: root/extras/HOME/.local/bin/emoticon-select.sh
blob: 5674e44bdb5c1e731c83135b4f9081a331a6d228 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

if [[ -z "$ROFI" ]] ; then
  ROFI='rofi -dmenu'
fi

if ( which rofi ) ; then
  menu=($ROFI -i -theme-str '* {theme-color: #ffa050;}' -p "Select Emoticon")
else
  menu=(dmenu -fn NotoSans:size=24 -i -nf "#ffff88" -sb "#ffff88" -p "Select Emoticon" -l 12 -dim 0.4)
fi


emoticon="$("${menu[@]}" < $HOME/.xmonad/emoticons.txt | sed 's#^[^-]*-\s*##')"

echo "$emoticon" | xclip -selection clipboard