Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
panel-plugins:xfce4-genmon-plugin [2020/04/12 02:19] – [Usage] toz | panel-plugins:xfce4-genmon-plugin [2021/01/13 07:09] – added rss feed for latest release kevinbowen | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | ====== Genmon ====== | + | ====== |
This plugin cyclically spawns the indicated script/ | This plugin cyclically spawns the indicated script/ | ||
Line 25: | Line 25: | ||
* ''< | * ''< | ||
* ''< | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | |||
+ | The < | ||
+ | * image changes with the icon theme | ||
+ | * supports panel' | ||
+ | * supports light/dark symbolic icon auto-colour changes | ||
If None of the tags are detected in the result of the command, the plugin returns to its original behaviour (displaying the result of the command). | If None of the tags are detected in the result of the command, the plugin returns to its original behaviour (displaying the result of the command). | ||
- | **Example Script** | + | **Example Script |
Here's a simple example of a plugin displaying the Temp of the CPU in the panel | Here's a simple example of a plugin displaying the Temp of the CPU in the panel | ||
(with an icon) and the Freq in a Tooltip: | (with an icon) and the Freq in a Tooltip: | ||
- | + | <file sh cuptemp.sh> | |
- | # | + | # |
- | echo "< | + | echo "< |
- | declare -i cpuFreq | + | declare -i cpuFreq |
- | cpuFreq=$(cat / | + | cpuFreq=$(cat / |
- | if [ $cpuFreq -ge 1000 ] | + | if [ $cpuFreq -ge 1000 ] |
- | then | + | then |
- | cpu=$(echo $cpuFreq | cut -c1).$(echo $cpuFreq | cut -c2)GHz | + | cpu=$(echo $cpuFreq | cut -c1).$(echo $cpuFreq | cut -c2)GHz |
- | else | + | else |
- | cpu=${cpuFreq}MHz | + | cpu=${cpuFreq}MHz |
- | fi | + | fi |
- | echo "< | + | echo "< |
- | echo "< | + | echo "< |
+ | </ | ||
PS: Depending on your configuration, | PS: Depending on your configuration, | ||
+ | |||
+ | **Another Example Script (keyboard leds)** | ||
+ | |||
+ | Here's a another simple example of a plugin displaying the keyboard LED states of the caps, num and scroll lock keys: | ||
+ | <file sh kbdleds.sh> | ||
+ | #!/bin/bash | ||
+ | # genmon script to display status of keyboard LEDS | ||
+ | # genmon properties: | ||
+ | # | ||
+ | # Label = optional Label preceeding output | ||
+ | # | ||
+ | # Font = the font to use - monospace fonts keep the widget from resizing | ||
+ | |||
+ | # configuration | ||
+ | FG=" | ||
+ | OBC=" | ||
+ | |||
+ | # code | ||
+ | STATE=($(xset q | grep Caps\ Lock | awk ' | ||
+ | CAPS=$([[ ${STATE[0]} == " | ||
+ | NUM=$([[ ${STATE[1]} == " | ||
+ | SCROLL=$([[ ${STATE[2]} == " | ||
+ | |||
+ | # genmon | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "NUM = ${STATE[1]}" | ||
+ | echo " | ||
+ | |||
+ | exit 0 | ||
+ | </ | ||
More scripts are available at: [[http:// | More scripts are available at: [[http:// | ||
Line 52: | Line 91: | ||
**Pango Markups in the <txt> tag** | **Pango Markups in the <txt> tag** | ||
- | Both the <txt> and < | + | Both the <txt> and < |
echo "< | echo "< | ||
Line 73: | Line 112: | ||
// | // | ||
- | * Configuration window layout was slightly updated | ||
- | * Close button was renamed to Save. Clicking Save now saves the configuration changes. Closing the window using the X in the window titlebar exists the configuration dialog with no changes made | ||
- | * Added support for the new libxfce4ui API (CSD) | ||
- | * Enabled panel multi-row support. If panel exceeds 1 row, the plugin will only occupy one row. | ||
- | * Added < | ||
- | * * image changes with the icon theme | ||
- | * * supports panel' | ||
- | * * supports light/dark symbolic icon auto-colour changes | ||
Line 141: | Line 172: | ||
===== Latest Release ===== | ===== Latest Release ===== | ||
- | ==== 4.0.2 (2019/ | + | {{rss> |
- | [[http:// | + | |
- | **SHA-256 Hash**: 256c22526f61aabf43b91b903b976c13e56198657667df443cdb06b31fbf23aa \\ | + | |
- | **SHA-1 Hash**: cffc57ae3bce3ac0b3d5a6a055ef533907bb398c \\ | + | |
- | **MD5 Hash**: d808fe77a438c95b97ec6feda6162d22 | + | |
- | ---- | + | [[|Back to Top]] |
- | ===== Release History ===== | + | |
- | ==== 4.0.1 (2017/ | + | |
- | * Allow pango markup in tooltip as well | + | |
- | * Added some extra sample scripts (twit, google calendar, sysstat) | + | |
- | * Enhanced CSS styling capabilites (see 'CSS Styling.txt' | + | |
- | * Fix progressbar wrong direction | + | |
- | + | ||
- | ==== 4.0.0 (2017/ | + | |
- | * Fix PangoFontDescription not being able to display initial default string | + | |
- | + | ||
- | ==== 3.99 (2016/ | + | |
- | * Port to Gtk3 | + | |
- | * Fix font styling to work with Gtk 3.22 | + | |
- | * Add support for " | + | |
- | * Fix default tooltip does not work (bug #11284) | + | |
- | * Add < | + | |
- | + | ||
- | ==== 3.4 (2012/ | + | |
- | * Port from libxfcegui4 to libxfce4ui | + | |
- | * Install as a shared library rather than an executable | + | |
- | * No longer uses troublesome fixed-length text buffers | + | |
- | * Bug fixes | + | |
- | + | ||
- | ===== Recent Changes ===== | + | |
- | {{rss> | + | |
- | + | ||
- | ===== Getting it ===== | + | |
- | The normal (and best) way to get this plugin is to use the package manager or port system of your operating system. | + | |
- | + | ||
- | If it isn't available there, or if you want a different version, you can download it in source form from [[http:// | + | |
---- | ---- | ||
===== Source code repository ===== | ===== Source code repository ===== | ||
- | [[http://git.xfce.org/ | + | [[https://gitlab.xfce.org/ |
---- | ---- | ||
===== Reporting Bugs ===== | ===== Reporting Bugs ===== | ||
- | If you encounter a bug in '' | + | * **[[:panel-plugins: |
- | + | ||
- | <note important> | + | |
- | + | ||
- | **[[http:// | + | |
- | + | ||
- | ==== Open Bugs ==== | + | |
- | {{rss> | + | |
[[|Back To Top]] | [[|Back To Top]] | ||
---- | ---- | ||
[[ : | [[ : |