From 80be37611711871c6971588873687755103097c0 Mon Sep 17 00:00:00 2001 From: Enrico Maria De Angelis Date: Wed, 17 Apr 2024 18:25:45 +0100 Subject: ArchUpdates --- doc/plugins.org | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'doc/plugins.org') 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 "" "" + green = wrap "" "" + #+end_src * Executing external commands -- cgit v1.2.3