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
|
dt = :detach<space> # Remove attachment
|
||||||
H = :multipart text/html<Enter> # Convert Markdown to HTML
|
H = :multipart text/html<Enter> # Convert Markdown to HTML
|
||||||
# paste an attachment from clipboard
|
# paste an attachment from clipboard
|
||||||
# p = :menu -c ''
|
p = :menu -c '/home/fic/.config/mail/aerc/paste-attachment.sh' :attach<Enter> # Paste attachment
|
||||||
|
|
||||||
[terminal]
|
[terminal]
|
||||||
$noinherit = true
|
$noinherit = true
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
#!/bin/env bash
|
#!/bin/env bash
|
||||||
|
|
||||||
# File to write the path
|
# File to write the path
|
||||||
temp="$1"
|
# temp="$1"
|
||||||
|
|
||||||
# if the clipboard is plain/text, we assume it's a path
|
# 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
|
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
|
else
|
||||||
echo "Text type."
|
notify-send "Text type."
|
||||||
|
wl-paste
|
||||||
fi
|
fi
|
||||||
|
|
BIN
.config/aerc/temp
Normal file
BIN
.config/aerc/temp
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
|
@ -1,5 +1,5 @@
|
||||||
Videos /home/fic/Videos v
|
|
||||||
Videos /home/fic/Videos/ v
|
Videos /home/fic/Videos/ v
|
||||||
|
Videos /home/fic/Videos v
|
||||||
SyncDocuments /home/fic/SyncDocuments s
|
SyncDocuments /home/fic/SyncDocuments s
|
||||||
SyncDocuments /home/fic/SyncDocuments/ s
|
SyncDocuments /home/fic/SyncDocuments/ s
|
||||||
Pictures /home/fic/Pictures p
|
Pictures /home/fic/Pictures p
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue