summaryrefslogtreecommitdiffhomepage
path: root/doc/plugins.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-05-21 23:48:30 +0100
committerjao <jao@gnu.org>2024-05-21 23:48:30 +0100
commit23b58ee76bd661e1c956625d4e5c3c3b916e767a (patch)
treeaac4bfe74499c8cf870e2b5c44970f09326881df /doc/plugins.org
parent80be37611711871c6971588873687755103097c0 (diff)
downloadxmobar-23b58ee76bd661e1c956625d4e5c3c3b916e767a.tar.gz
xmobar-23b58ee76bd661e1c956625d4e5c3c3b916e767a.tar.bz2
changelog and doc nits for ArchUpdates
Diffstat (limited to 'doc/plugins.org')
-rw-r--r--doc/plugins.org57
1 files changed, 26 insertions, 31 deletions
diff --git a/doc/plugins.org b/doc/plugins.org
index bb33466..a1567c3 100644
--- a/doc/plugins.org
+++ b/doc/plugins.org
@@ -1321,7 +1321,7 @@
#+begin_src haskell
Run UVMeter "Brisbane" ["-H", "3", "-L", "3", "--low", "green", "--high", "red"] 900
#+end_src
-** Other monitors
+** Other monitors and plugins
*** =CatInt n filename=
- Reads and displays an integer from the file whose path is =filename=
@@ -1351,6 +1351,31 @@
the display of those numeric fields.
- Default template: =Up: <days>d <hours>h <minutes>m=
+*** =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:
+ In a plain configuration file:
+ #+begin_src haskell
+ ArchUpdates' ("<fc=green>up to date</fc>",
+ "<fc=yellow>1 update</fc>,
+ "<fc=red>? updates</fc>")
+ 600
+ #+end_src
+*** =ArchUpdates Rate=
+ Same as (see above for ~ArchUpdates'~):
+ #+begin_src haskell
+ ArchUpdates' ("up to date",
+ "1 update available",
+ "? updates available") Rate
+ #+end_src
* Interfacing with window managers
:PROPERTIES:
:CUSTOM_ID: interfacing-with-window-managers
@@ -1575,36 +1600,6 @@
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
In order to execute an external command you can either write the