This commit is contained in:
Luke Smith 2018-12-03 00:59:20 -05:00
parent 7fed5bb0a7
commit 0640716f80
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,8 @@ chosen=$(grep -v "#" ~/.emoji | dmenu -i -l 20 -fn Monospace-18)
c=$(echo "$chosen" | sed "s/ .*//") c=$(echo "$chosen" | sed "s/ .*//")
echo "$c" | tr -d '\n' | xclip -selection clipboard echo "$c" | tr -d '\n' | xclip -selection clipboard
pgrep -x dunst >/dev/null && notify-send "'$c' copied to clipboard." notify-send "'$c' copied to clipboard." &
s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}') s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}')
echo "$s" | tr -d '\n' | xclip echo "$s" | tr -d '\n' | xclip
pgrep -x dunst >/dev/null && notify-send "'$s' copied to primary." notify-send "'$s' copied to primary." &

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Feed script a url. # Feed script a url or file location.
# If an image, it will view in feh, # If an image, it will view in feh,
# if a video or gif, it will view in mpv # if a video or gif, it will view in mpv
# if a music file or pdf, it will download, # if a music file or pdf, it will download,