AutoYADM commit: 2025-03-17 12:45:06
This commit is contained in:
parent
2c4d34b0d7
commit
68191b42ef
4 changed files with 12 additions and 6 deletions
|
@ -1,12 +1,18 @@
|
|||
#!/bin/env bash
|
||||
|
||||
# File to write the path
|
||||
temp="$1"
|
||||
# temp="$1"
|
||||
|
||||
# if the clipboard is plain/text, we assume it's a path
|
||||
# otherwise, we assume it's a mime-type to be copied
|
||||
# otherwise, we assume it's a mime-type to be pasted
|
||||
if wl-paste --list-types | grep -qv '^text/plain$'; then
|
||||
echo "Non-text type."
|
||||
notify-send "Non-text type."
|
||||
temp=$(mktemp)
|
||||
wl-paste > temp
|
||||
grep -E "^$(wl-paste --list-types)" /etc/mime.types | awk '{print $2}'
|
||||
|
||||
# echo "$temp"
|
||||
else
|
||||
echo "Text type."
|
||||
notify-send "Text type."
|
||||
wl-paste
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue