summaryrefslogtreecommitdiffhomepage
path: root/doc/plugins.org
diff options
context:
space:
mode:
authorEnrico Maria De Angelis <enricomaria.dean6elis@gmail.com>2024-03-30 09:12:15 +0000
committerEnrico Maria De Angelis <enricomaria.dean6elis@gmail.com>2024-03-30 15:53:58 +0000
commit7c778511f296c74f36c2b4967707c87ebf2fb808 (patch)
treeb9d2edab4f1792cef26908cb87a1942341c3fe34 /doc/plugins.org
parent3d2f21a7815b6830085db94a949355a3aad6b6bb (diff)
downloadxmobar-7c778511f296c74f36c2b4967707c87ebf2fb808.tar.gz
xmobar-7c778511f296c74f36c2b4967707c87ebf2fb808.tar.bz2
Add ctor for Locks plugin to accpet on/off labels
Diffstat (limited to 'doc/plugins.org')
-rw-r--r--doc/plugins.org19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/plugins.org b/doc/plugins.org
index e408dec..ebe5a5b 100644
--- a/doc/plugins.org
+++ b/doc/plugins.org
@@ -698,18 +698,37 @@
#+begin_src haskell
Run Brightness ["-t", "<bar>"] 60
#+end_src
+
*** =Locks=
- Displays the status of Caps Lock, Num Lock and Scroll Lock.
- Aliases to =locks=
+ - Contructors:
+
+ - =Locks= is nullary and uses the strings =CAPS=, =NUM=, =SCROLL= to signal
+ that a lock is enabled (and empty strings to signal it's disabled)
+
+ - =Locks'= allow customizing the strings for the enabled/disabled states
+ of the 3 locks by accepting an assoc list of type =[(String, (String, String))]=,
+ which is expected to contain exactly 3 elements with keys
+ ="CAPS"=, ="NUM"=, ="SCROLL"=.
+
- Example:
#+begin_src haskell
+ -- using default labels
Run Locks
#+end_src
+ #+begin_src haskell
+ -- using custom labels
+ Run $ Locks' [("CAPS" , ("<fc=#00ff00>\xf023</fc>", "<fc=#777777>\xf09c</fc>") )
+ ,("NUM" , ("<fc=#777777>\xf047</fc>", "<fc=#00ff00>\xf047</fc>" ) )
+ ,("SCROLL", ("SlOCK", "" ))]
+ #+end_src
+
** Load and Process monitors
*** =Load Args RefreshRate=