Bash Sensors

UUID: bash-sensors@pkkk
Last edited:
3 months ago 2019-06-03, 10:03 UTC
Last commit: [d8d22ee8] bash-sensors@pkkk: Using spawn_async() instead of spawn_sync(). (#2415)

Write your Bash commands to specify applet output (temperature sensors and not only!)

Log In To Comment!

3 Comments

Stuart D. Gathman
Stuart D. Gathman-3 weeks ago
I was considering writing an app like this - immediate application was extended battery information like real time current draw. I was browsing through existing applets and found Command Runner, and this little gem! The only glitch is the dynamic tool-tip doesn't work for me - just displays the command, not the output. But with two commands for panel output and menu command, there is plenty of dynamic output. BTW, xterm can also take fonts, colors, window size, title, command arguments and almost provides the functionality with a launcher - except it opens a normal app window instead of the applet info window.
jpachta
jpachta-4 months ago
Nice applet to print to my panel whatever I found useful! I tried to "monitor" one of my laptop in the network to find its current IP address using ping -c 1 hostname command with some grep's to have the output a bit nicer. While the ping was waiting for the response the applet makes microfreeze to whole cinnamon environment on Fedora29, Cinnamon 4.0.10 (probably the Weather applet does the same kind of microfreeze as well).
SlashTray
SlashTray-1 year ago
Excellent! Thank you so much, usage possibilities are endless :) Here is one bash script (to be called by Bash Sensors of course) that displays your internet public IP (useful if you use a VPN service for instance): #!/bin/bash my_public_ip=`dig +short @resolver1.opendns.com myip.opendns.com 2>/dev/null` if [ $? -ne 0 ] then echo "No internet access" else echo $my_public_ip fi