summaryrefslogtreecommitdiffhomepage
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
parent80be37611711871c6971588873687755103097c0 (diff)
downloadxmobar-23b58ee76bd661e1c956625d4e5c3c3b916e767a.tar.gz
xmobar-23b58ee76bd661e1c956625d4e5c3c3b916e767a.tar.bz2
changelog and doc nits for ArchUpdates
-rw-r--r--changelog.md5
-rw-r--r--doc/plugins.org57
-rw-r--r--xmobar.cabal2
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: <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
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.