From 090e5b1d6eae3d6c5cdb279f8e4b6e660c245998 Mon Sep 17 00:00:00 2001 From: Linus K Date: Mon, 3 Feb 2020 15:33:02 +0100 Subject: [PATCH] Use script name instead of "notify-send" Many typical graphical environments also show the app name. Having "notify-send" there looks kinda hacky. --- .local/bin/dmenuunicode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode index 3cc5ebd0..712b3a8a 100755 --- a/.local/bin/dmenuunicode +++ b/.local/bin/dmenuunicode @@ -11,8 +11,8 @@ chosen=$(grep -v "#" ~/.local/share/larbs/emoji | dmenu -i -l 20 -fn Monospace-1 c=$(echo "$chosen" | sed "s/ .*//") echo "$c" | tr -d '\n' | xclip -selection clipboard -notify-send "'$c' copied to clipboard." & +notify-send -a `basename "$0"` "'$c' copied to clipboard." & s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}') echo "$s" | tr -d '\n' | xclip -notify-send "'$s' copied to primary." & +notify-send -a `basename "$0"` "'$s' copied to primary." &