![]() |
Show Text as Notification (yellow bar) via Sh-Script
Hi!
I use a script to turn the lights in my appartment off an on. I would like to complete this function with a feedback in the form of a info-bar, which scrolls into the desktop (like e.g. the "Battery fully charged" message). Does anyone know how to create such a notification out of a shellscript? Thanks in advantage! |
Re: Show Text as Notification (yellow bar) via Sh-Script
What you are asking is a widget, I don't think you can create one out of a shell script...What you can do is to create a icon On and Off which when selected calls the appropriate script...and how did you do it?...using bluetooth?
|
Re: Show Text as Notification (yellow bar) via Sh-Script
Quote:
The N900 is starting a script (via WLAN-Connection) on a mini-linux-server, which controls 4 USB-controlled power-sockets. (Linux-Server: NSLU2, USB-Power-Socket: Gembird SIS-PM). Do you or anyone else know another possibility to create any message-output on the desktop through a shellscript? |
Re: Show Text as Notification (yellow bar) via Sh-Script
|
Re: Show Text as Notification (yellow bar) via Sh-Script
Thanks, this is what i've searched !
|
Re: Show Text as Notification (yellow bar) via Sh-Script
you could use zenity:
Quote:
|
Re: Show Text as Notification (yellow bar) via Sh-Script
Quote:
(I had to install zenity first, it was not included in the standard-installation). It's unfortunately visually not the most beautiful method, but it works! Thanks! |
Re: Show Text as Notification (yellow bar) via Sh-Script
Hi!
I've implemented the desired feedback-message now: Code:
#!/bin/sh |
All times are GMT. The time now is 23:33. |
vBulletin® Version 3.8.8