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 --- changelog.md | 5 +++++ doc/plugins.org | 57 ++++++++++++++++++++++++++------------------------------- xmobar.cabal | 2 +- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/changelog.md b/changelog.md index 3f2e484..20308fd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +## Version 0.49 (unreleased) + +- New plugin: `ArchUpdates` (thanks, Enrico Maria) + + ## Version 0.48.1 (May, 2024) - Removing for now mouse support for `Kbd`, which can be recovered by 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 diff --git a/xmobar.cabal b/xmobar.cabal index e00044a..8a31619 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -1,5 +1,5 @@ name: xmobar -version: 0.48.1 +version: 0.49 homepage: https://codeberg.org/xmobar/xmobar synopsis: A Minimalistic Text Based Status Bar description: Xmobar is a minimalistic text based status bar. -- cgit v1.2.3