Closed ghost closed 7 months ago
Interested in this as well. I am trying to funnel more messages to swaync, for instance neovim errors but then I can't copy/paste the error anymore. I would like to make a script that when I click a notification copies its content into clipboard
Sorry for the late response. A lot of assignments and finals these past few weeks. 😅
Check the environment variables, SWAYNC_BODY
should contain the body if I remember correctly :)
for future people arriving on this issue, the following works for me on on.10
"scripts": {
"example-action-script": {
"exec": "bash -c 'wl-copy \"$SWAYNC_BODY\"'",
"run-on": "action"
}
},
Hi,
looking for a way for passing information of a remote ssh session via OSC to emacs. The idea is: from inside a ssh session I want to send a OSC notifiy with hostname and directory to swaync and execute a script which opens a tramp session in emacs for editing files.
But I realized that there is no way to bring the subject of the message to the script. At least it is not documented.
exec: /path/to/script.sh {subject} {body}
would be very nice Or did I miss something?thanks