|
How to copy a path to the Wayland clipboard as a |
Answered by
anki-code
May 30, 2026
Replies: 1 comment
@aliases.register
@aliases.return_command
def _pcopy(args: list) -> list:
try:
args[0] = Path(args[0]).absolute().as_uri()
except IndexError:
pass
return ['wl-copy', '-t', 'text/uri-list', *args]After |
0 replies
Answer selected by
anki-code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After
pcopy ./photo.jpgyou can paste the file (Ctrl+V) into a file manager, browser, or chat as a real file — not a string.