AutoYADM commit: 2025-03-17 12:30:07
This commit is contained in:
parent
e2b0fc2008
commit
2c4d34b0d7
4 changed files with 22 additions and 7 deletions
12
.config/aerc/paste-attachment.sh
Executable file
12
.config/aerc/paste-attachment.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/env bash
|
||||
|
||||
# File to write the path
|
||||
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
|
||||
if wl-paste --list-types | grep -qv '^text/plain$'; then
|
||||
echo "Non-text type."
|
||||
else
|
||||
echo "Text type."
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue