Some spaces changes
This commit is contained in:
parent
c8dc01fe62
commit
ca5426bbde
20
README.md
20
README.md
|
@ -26,7 +26,7 @@ All functions read JSON formatted parameters
|
|||
"items": [
|
||||
{
|
||||
"name" : "",
|
||||
"box" : "", // Optional : left, right or center
|
||||
"box" : ["left"|"center"|"right"], // Optional : center by default
|
||||
"text" : <text_object>, // Optional
|
||||
"icon" : <icon_object>, // Optional
|
||||
"popup" : <popup_object>, // Optional
|
||||
|
@ -66,26 +66,26 @@ DBUS object
|
|||
===========
|
||||
|
||||
<text_object> is defined as :
|
||||
{
|
||||
"text" : {
|
||||
"text" : "Text to be displayed",
|
||||
"style" : "CSS style to be applied", // Optional
|
||||
}
|
||||
|
||||
<icon_object> is defined as :
|
||||
{
|
||||
"icon" : {
|
||||
"path" : "Icon path",
|
||||
"style" : "CSS style to be applied", // Optional
|
||||
}
|
||||
|
||||
<picture_object> is defined as :
|
||||
{
|
||||
"picture" : {
|
||||
"path" : "Icon path",
|
||||
"width" : XXX, // Optional : Force width in pixels, can be -1 for defaut value
|
||||
"height" : XXX, // Optional : Force height in pixels, can be -1 for defaut value
|
||||
}
|
||||
|
||||
<popup_object is defuned as :
|
||||
{
|
||||
"popup" : {
|
||||
"items": [<text_objects> and/or <picture_objects>]
|
||||
}
|
||||
|
||||
|
@ -99,9 +99,9 @@ Signals can be :
|
|||
"on-dblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-rightclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-rightdblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
|
||||
Targets :
|
||||
|
||||
|
@ -115,8 +115,8 @@ Targets :
|
|||
Signal names emit when action "signal" is specified :
|
||||
|
||||
* onClick
|
||||
* onRightClick
|
||||
* onDblClick
|
||||
* onRightClick
|
||||
* onRightDblClick
|
||||
* onEnter
|
||||
* onLeave
|
||||
|
@ -140,7 +140,7 @@ You can test it with command line :
|
|||
|
||||
gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.deleteGroups '{"groups":["new"]}'
|
||||
|
||||
Python example is available
|
||||
Python examples is available
|
||||
|
||||
|
||||
Development
|
||||
|
|
|
@ -375,10 +375,10 @@ class GenericMonitorItem:
|
|||
"on-dblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-rightclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-rightdblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-click" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-click" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
"on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"]
|
||||
popup : GenericMonitorPopup, optional
|
||||
Popup to be displayed
|
||||
box : str, optional
|
||||
|
|
Loading…
Reference in New Issue
Block a user