From af6487bdb195c61574fa353e3bdd5bfe54b2073b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 31 Oct 2023 17:31:52 +0100 Subject: cleanup --- bin/menuscripts/memoji | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'bin/menuscripts') diff --git a/bin/menuscripts/memoji b/bin/menuscripts/memoji index 9c45950..b957981 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 copied!" - 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:" -l -x | sh "$0" copy ;; esac exit -- cgit v1.2.3 From cfb3aed2b81be807d385845cf0807d99dc0d1ac4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 31 Oct 2023 17:35:38 +0100 Subject: use width and height parameters instead of list --- bin/menuscripts/memoji | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/menuscripts') diff --git a/bin/menuscripts/memoji b/bin/menuscripts/memoji index b957981..45a74f1 100755 --- a/bin/menuscripts/memoji +++ b/bin/menuscripts/memoji @@ -17,7 +17,7 @@ case "$1" in 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 -- cgit v1.2.3