2 Commits
v6 ... v10

3 changed files with 26 additions and 21 deletions

View File

@@ -7,6 +7,10 @@ This GNOME Shell Extension aims to display information to center box. Using DBUS
Installation Installation
------------ ------------
Install it from https://extensions.gnome.org/extension/2826/generic-monitor/
OR
Create a symbolic link from your _.local_ directory and enable extension Create a symbolic link from your _.local_ directory and enable extension
ln -s $PWD/generic-monitor@gnome-shell-extensions/ ~/.local/share/gnome-shell/extensions/ ln -s $PWD/generic-monitor@gnome-shell-extensions/ ~/.local/share/gnome-shell/extensions/
@@ -109,7 +113,7 @@ Signals can be :
Targets : Targets :
* signal : emit a signal to desktop application * signal : Emit a signal to desktop application
* delete : Delete item * delete : Delete item
* open-popup : Open the popup if there is one * open-popup : Open the popup if there is one
* close-popup : Close the popup if there is one * close-popup : Close the popup if there is one
@@ -142,7 +146,7 @@ Example
You can test it with command line : 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"]}' gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.deleteGroups '{"groups":["new"]}'

View File

@@ -1,47 +1,47 @@
<interface name="com.soutade.GenericMonitor"> <interface name="com.soutade.GenericMonitor">
<!-- Functions --> <!-- Functions -->
<method name="notify"> <method name="notify">
<arg type="s" direction="in" /> <arg name="parameters" type="s" direction="in" />
</method> </method>
<method name="deleteItems"> <method name="deleteItems">
<arg type="s" direction="in" /> <arg name="items" type="s" direction="in" />
</method> </method>
<method name="deleteGroups"> <method name="deleteGroups">
<arg type="s" direction="in" /> <arg name="groups" type="s" direction="in" />
</method> </method>
<method name="openPopup"> <method name="openPopup">
<arg type="s" direction="in" /> <arg name="popup" type="s" direction="in" />
</method> </method>
<method name="closePopup"> <method name="closePopup">
<arg type="s" direction="in" /> <arg name="popup" type="s" direction="in" />
</method> </method>
<method name="togglePopup"> <method name="togglePopup">
<arg type="s" direction="in" /> <arg name="popup" type="s" direction="in" />
</method> </method>
<!-- Events --> <!-- Events -->
<signal name="onClick"> <signal name="onClick">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<signal name="onRightClick"> <signal name="onRightClick">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<signal name="onDblClick"> <signal name="onDblClick">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<signal name="onRightDblClick"> <signal name="onRightDblClick">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<signal name="onScrollUp"> <signal name="onScrollUp">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<signal name="onScrollDown"> <signal name="onScrollDown">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<signal name="onEnter"> <signal name="onEnter">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<signal name="onLeave"> <signal name="onLeave">
<arg type="s" direction="out" /> <arg name="fullName" type="s" direction="out" />
</signal> </signal>
<!-- Activate/Deactivate signals --> <!-- Activate/Deactivate signals -->
<signal name="onActivate"> <signal name="onActivate">

View File

@@ -2,8 +2,9 @@
"uuid": "generic-monitor@gnome-shell-extensions", "uuid": "generic-monitor@gnome-shell-extensions",
"name": "Generic Monitor", "name": "Generic Monitor",
"description": "Display text & icon on systray using DBUS", "description": "Display text & icon on systray using DBUS",
"version": "6", "version": "10",
"shell-version": [ "shell-version": [
"42",
"41", "41",
"40", "40",
"3.38", "3.38",