Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d3665f2ff0 | |||
00fb6120c9 |
16
README.md
16
README.md
@@ -7,6 +7,10 @@ This GNOME Shell Extension aims to display information to center box. Using DBUS
|
||||
Installation
|
||||
------------
|
||||
|
||||
Install it from https://extensions.gnome.org/extension/2826/generic-monitor/
|
||||
|
||||
OR
|
||||
|
||||
Create a symbolic link from your _.local_ directory and enable extension
|
||||
|
||||
ln -s $PWD/generic-monitor@gnome-shell-extensions/ ~/.local/share/gnome-shell/extensions/
|
||||
@@ -109,11 +113,11 @@ Signals can be :
|
||||
|
||||
Targets :
|
||||
|
||||
* signal : emit a signal to desktop application
|
||||
* delete : Delete item
|
||||
* open-popup : Open the popup if there is one
|
||||
* close-popup : Close the popup if there is one
|
||||
* toggle-popup : Toggle (open/close) the popup if there is one
|
||||
* signal : Emit a signal to desktop application
|
||||
* delete : Delete item
|
||||
* open-popup : Open the popup if there is one
|
||||
* close-popup : Close the popup if there is one
|
||||
* toggle-popup : Toggle (open/close) the popup if there is one
|
||||
|
||||
|
||||
Signal names emit when action "signal" is specified :
|
||||
@@ -142,7 +146,7 @@ Example
|
||||
|
||||
You can test it with command line :
|
||||
|
||||
gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.notify '{"group":"new","items":[{"name":"first","on-click":"toggle-popup","text":{"text":"Hello","style":"color:green"},"popup":{"items":[{"picture":{"path":"/tmp/cat2.jpg"}}]}}]}'
|
||||
gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.notify '{"group":"new","items":[{"name":"first","on-click":"toggle-popup","text":{"text":"Hello","style":"color:green"},"popup":{"items":[{"picture":{"path":"/tmp/cat.jpg"}}]}}]}'
|
||||
|
||||
gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.deleteGroups '{"groups":["new"]}'
|
||||
|
||||
|
28
dbus.xml
28
dbus.xml
@@ -1,47 +1,47 @@
|
||||
<interface name="com.soutade.GenericMonitor">
|
||||
<!-- Functions -->
|
||||
<method name="notify">
|
||||
<arg type="s" direction="in" />
|
||||
<arg name="parameters" type="s" direction="in" />
|
||||
</method>
|
||||
<method name="deleteItems">
|
||||
<arg type="s" direction="in" />
|
||||
<arg name="items" type="s" direction="in" />
|
||||
</method>
|
||||
<method name="deleteGroups">
|
||||
<arg type="s" direction="in" />
|
||||
<arg name="groups" type="s" direction="in" />
|
||||
</method>
|
||||
<method name="openPopup">
|
||||
<arg type="s" direction="in" />
|
||||
<arg name="popup" type="s" direction="in" />
|
||||
</method>
|
||||
<method name="closePopup">
|
||||
<arg type="s" direction="in" />
|
||||
<arg name="popup" type="s" direction="in" />
|
||||
</method>
|
||||
<method name="togglePopup">
|
||||
<arg type="s" direction="in" />
|
||||
<arg name="popup" type="s" direction="in" />
|
||||
</method>
|
||||
<!-- Events -->
|
||||
<signal name="onClick">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<signal name="onRightClick">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<signal name="onDblClick">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<signal name="onRightDblClick">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<signal name="onScrollUp">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<signal name="onScrollDown">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<signal name="onEnter">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<signal name="onLeave">
|
||||
<arg type="s" direction="out" />
|
||||
<arg name="fullName" type="s" direction="out" />
|
||||
</signal>
|
||||
<!-- Activate/Deactivate signals -->
|
||||
<signal name="onActivate">
|
||||
|
@@ -2,8 +2,9 @@
|
||||
"uuid": "generic-monitor@gnome-shell-extensions",
|
||||
"name": "Generic Monitor",
|
||||
"description": "Display text & icon on systray using DBUS",
|
||||
"version": "6",
|
||||
"version": "10",
|
||||
"shell-version": [
|
||||
"42",
|
||||
"41",
|
||||
"40",
|
||||
"3.38",
|
||||
|
Reference in New Issue
Block a user