3 ms·
I use this little CLI utility that I wrote to send messages on Telegram via a Bot. https://github.com/simonacca/TellTg https://github.com/simonacca/TellTg All
by simon_acca 9y ago
I use this little CLI utility that I wrote to send messages on Telegram via a Bot. https://github.com/simonacca/TellTg https://github.com/simonacca/TellTg
All you have to do is `$ my_long_running_job; telltg "Done"` and you get a notification on all your devices. Very handy also for remote jobs.
The best use case so far has been piping the udev log into it when my laptop is locked in a public place and I'm away. I get a notification on my phone when someone open/closes the lid, unplugs the charger, sticks a USB drive in and so on.
- pigpigs 9y agoCool! May I ask how do you hook it up with opening / closing lid, sticking usb drive etc?
- simon_acca 9y agoI simply do `udevadm monitor | telltg & i3lock`. It's ugly to look at, but the idea is that you should never receive any logs, if you do, don't look at them but rather get your laptop in sight quickly because something is happening to it (I use it in the public library or such settings).