Open anki-code opened 2 years ago
is there any advantage using that? using this library is convenient , that we don't have haggle on each OS
I mean something like this:
CUSTOM_NOTIFIER = xsh.env.get("XONTRIB_CD_CUSTOM_NOTIFIER", None)
if CUSTOM_NOTIFIER:
sp.check_output(CUSTOM_NOTIFIER).decode().strip()
else:
from notifypy import Notify
# ...
and:
$XONTRIB_CD_CUSTOM_NOTIFIER = ['/tmp/wsl-notify-send.exe', '--appId', '{title}', '-c', '{subtitle}', '{message}']
xontrib load cmd_done
could you answer why this is needed?
To have a way to support WSL until notifypy hasn't this feature (https://github.com/ms7m/notify-py/issues/45).
Thanks now I understand. PRs welcome to add such functionality.
Hi! Thanks for this xontrib!
It will be cool to have an ability to send notification using external tool.
For example run wsl-notify-send as
instead of this:
https://github.com/jnoortheen/xontrib-cmd-durations/blob/383b6ad31944b285bba909e9d8e2c492e43f627d/xontrib/cmd_done.py#L128-L133
For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 comment