summaryrefslogtreecommitdiff
path: root/bin/menuscripts/memoji
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-31 19:25:07 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-31 19:25:07 +0100
commit331272136a4fc36fce308dc87e4a1b53daba328b (patch)
treef10e23a2fdedeff756cb70869845313aa332a8be /bin/menuscripts/memoji
parentff3a8bb2d62f5a7e1759eb3d9e0834f4396e833d (diff)
parent442fdac531a6b042a396eafc096811e46bc063ca (diff)
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/menuscripts/memoji')
-rwxr-xr-xbin/menuscripts/memoji17
1 files changed, 3 insertions, 14 deletions
diff --git a/bin/menuscripts/memoji b/bin/menuscripts/memoji
index 9c45950..45a74f1 100755
--- a/bin/menuscripts/memoji
+++ b/bin/menuscripts/memoji
@@ -5,30 +5,19 @@
# If this file includes emojis below "__DATA__" it is generated.
# This file was generated: 2022-04-21 12:38:03+00:00
-if [ "$WAYLAND_DISPLAY" ]
-then
- alias copycmd="wl-copy"
-else
- alias copycmd="xclip -sel c"
-fi
set -e
case "$1" in
- "list")
- data=$(sed '0,/^__DATA__$/d' "$0")
- printf "%s" "$data"
- ;;
+ "list") printf "%s" "$(sed '0,/^__DATA__$/d' "$0")" ;;
"copy")
input=$(tee | cut -f 1 -d ' ')
if [ "$input" ]
then
notify-send "dmemoji" "$input <b>copied!</b>"
- printf "%s" "$input" | copycmd
+ printf "%s" "$input" | clipp
fi
;;
- "")
- sh "$0" list | commander -p "Emoji:" -l -x | sh "$0" copy
- ;;
+ "") sh "$0" list | commander -p "Emoji:" -x -w 44 -y 10 -c | sh "$0" copy ;;
esac
exit