mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
event plugin and dbus interface by Ed Martin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1053 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -327,7 +327,7 @@ Display HD44780-I2C {
|
||||
|
||||
|
||||
Display LCDTerm {
|
||||
Driver 'LCDTerm
|
||||
Driver 'LCDTerm'
|
||||
Port '/dev/tts/0'
|
||||
Speed 19200
|
||||
Size '20x4'
|
||||
@@ -559,6 +559,31 @@ Plugin Pop3 {
|
||||
}
|
||||
|
||||
|
||||
Plugin DBus {
|
||||
# signal 0 is displayed IM msg
|
||||
#
|
||||
signal0sender 'im.pidgin.purple.PurpleService' # should be in the form com.domain.app.service,
|
||||
# the :1.23 form given by dbus-monitor will NOT work,
|
||||
# if unsure skip it
|
||||
signal0path '/im/pidgin/purple/PurpleObject' # find using dbus-monitor
|
||||
signal0interface 'im.pidgin.purple.PurpleInterface' # find using dbus-monitor
|
||||
signal0member 'DisplayedImMsg' # find using dbus-monitor
|
||||
signal0eventname 'got_im' # make something up, all Text widgets with an
|
||||
# event option matching this will be updated
|
||||
}
|
||||
|
||||
|
||||
#this example prints the second argument of signal# 0
|
||||
#(in this case it prints the message displayed)
|
||||
Widget Pidgin {
|
||||
class 'Text'
|
||||
expression dbus::argument(0, 1) . ': ' . dbus::argument(0, 2))
|
||||
width 20
|
||||
align 'R'
|
||||
event 'got_im'
|
||||
}
|
||||
|
||||
|
||||
Widget OS {
|
||||
class 'Text'
|
||||
expression '*** '.uname('sysname').' '.uname('release').' ***'
|
||||
|
||||
Reference in New Issue
Block a user