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
|
@ -205,7 +205,7 @@ a = :menu -c 'footclient yazi --chooser-file %f' -b :attach<Enter> # Pick attach
|
|||
dt = :detach<space> # Remove attachment
|
||||
H = :multipart text/html<Enter> # Convert Markdown to HTML
|
||||
# paste an attachment from clipboard
|
||||
# p = :menu -c ''
|
||||
p = :menu -c '/home/fic/.config/mail/aerc/paste-attachment.sh' :attach<Enter> # Paste attachment
|
||||
|
||||
[terminal]
|
||||
$noinherit = true
|
||||
|
|
|
@ -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
|
||||
|
|
BIN
.config/aerc/temp
Normal file
BIN
.config/aerc/temp
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
Loading…
Add table
Add a link
Reference in a new issue