summaryrefslogtreecommitdiffhomepage
path: root/doc/plugins.org
diff options
context:
space:
mode:
authorEnrico Maria De Angelis <enricomaria.dean6elis@gmail.com>2024-04-17 18:25:45 +0100
committerEnrico Maria De Angelis <enricomaria.dean6elis@gmail.com>2024-05-18 15:19:42 +0100
commit80be37611711871c6971588873687755103097c0 (patch)
tree97eee3f3a26c59bb235124518440b74caec4c82e /doc/plugins.org
parent1e8175d38a9f6048e638dcfa07e76dffbf438774 (diff)
downloadxmobar-80be37611711871c6971588873687755103097c0.tar.gz
xmobar-80be37611711871c6971588873687755103097c0.tar.bz2
ArchUpdates
Diffstat (limited to 'doc/plugins.org')
-rw-r--r--doc/plugins.org28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/plugins.org b/doc/plugins.org
index f27d7ff..bb33466 100644
--- a/doc/plugins.org
+++ b/doc/plugins.org
@@ -1575,6 +1575,34 @@
xmonad configuration (=xmonad.hs=), e.g. by using a custom
=~/.xmonad/build= script.
+* Other plugins
+
+ =ArchUpdates Rate=
+
+ Same as
+
+ #+begin_src haskell
+ ArchUpdates' ("up to date",
+ "1 update available",
+ "? updates available") Rate
+ #+end_src
+
+ =ArchUpdates' (Zero, One, Many) Rate=
+ - Aliases to =arch=
+
+ - =Zero=: a =String= for when the system is up to date.
+ - =One=: a =String= for when only one update is available.
+ - =Many=: a =String= for when several updates are available; it must contain a =?= character as a placeholder for the number of updates.
+ - Example:
+
+ #+begin_src haskell
+ ArchUpdates' (green "up to date",
+ yellow "1 update",
+ yellow "? updates") 600
+ where
+ yellow = wrap "<fc=yellow>" "</fc>"
+ green = wrap "<fc=green>" "</fc>"
+ #+end_src
* Executing external commands