![]() |
2010-11-10
, 11:56
|
Posts: 286 |
Thanked: 117 times |
Joined on Jan 2010
|
#2
|
![]() |
2010-11-10
, 12:04
|
Posts: 92 |
Thanked: 9 times |
Joined on Nov 2009
@ Germany, Bavaria
|
#3
|
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?
![]() |
2010-11-10
, 12:10
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#4
|
The Following 3 Users Say Thank You to nicolai For This Useful Post: | ||
![]() |
2010-11-10
, 12:14
|
Posts: 92 |
Thanked: 9 times |
Joined on Nov 2009
@ Germany, Bavaria
|
#5
|
![]() |
2010-11-10
, 12:15
|
Posts: 286 |
Thanked: 117 times |
Joined on Jan 2010
|
#6
|
#! /bin/sh -e
Q=`run-standalone.sh zenity --info --text "Meesage."
i
The Following User Says Thank You to crash16 For This Useful Post: | ||
![]() |
2010-11-10
, 12:39
|
Posts: 92 |
Thanked: 9 times |
Joined on Nov 2009
@ Germany, Bavaria
|
#7
|
![]() |
2010-11-10
, 15:55
|
Posts: 92 |
Thanked: 9 times |
Joined on Nov 2009
@ Germany, Bavaria
|
#8
|
#!/bin/sh ausgabe=`COMMAND` if [ "$ausgabe" = "EXPECTED VALUE" ] then run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"OK - Notification-Text" else run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"ERROR - Notification-Text" fi
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!