From 23b58ee76bd661e1c956625d4e5c3c3b916e767a Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 21 May 2024 23:48:30 +0100 Subject: changelog and doc nits for ArchUpdates --- doc/plugins.org | 57 ++++++++++++++++++++++++++------------------------------- 1 file changed, 26 insertions(+), 31 deletions(-) (limited to 'doc/plugins.org') 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: d h 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' ("up to date", + "1 update, + "? updates") + 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 "" "" - green = wrap "" "" - #+end_src - - * Executing external commands In order to execute an external command you can either write the -- cgit v1.2.3