-
-
Notifications
You must be signed in to change notification settings - Fork 51
modules: Executor
Piotr Miller edited this page Feb 2, 2021
·
17 revisions
The Executor module displays an icon, and a label on the basis of a script output, in user-defined intervals.
key | value | default | description |
---|---|---|---|
"script" | string | "" | Path to the script to execute or just a command w/ arguments. |
"interval" | int | 0 | Every how many seconds repeat the script execution. Set 0 to execute just once. |
"icon-size" | int | 16 | Icon size in pixels. |
"css-name" | string | "" | Optional name for use in the css file. |
"show-icon" | bool | true | Determines if to display the icon. |
"tooltip-text" | string | "" | Optional label to show when the pointer hovers the executor. |
"on-left-click" | string | "" | Command to execute on mouse left click. |
"on-middle-click" | string | "" | Command to execute on mouse middle click. |
"on-right-click" | string | "" | Command to execute on mouse right click. |
"on-scroll-up" | string | "" | Command to execute on mouse scroll up. |
"on-scroll-down" | string | "" | Command to execute on mouse scroll down. |
Output of the "script"
command should return 1 or 2 lines.
By default we expect the icon path in the first line, and some text in the second one, e.g:
$ psuinfo -IM
/usr/share/psuinfo/mem.svg
3.1/21.5 GB
However, the Executor module will also accept an icon name:
$ /home/piotr/.config/nwg-panel/executors/arch_updates.py
software-update-urgent
1/2