Show clock and battery status in mode-line

This commit is contained in:
Camden Dixie O'Brien 2021-01-01 00:00:31 +00:00
parent 5ab55e289d
commit dfe54f7652

View File

@ -356,6 +356,25 @@ needs to be set up to install them if they aren't already.
(start-process-shell-command "xrandr" nil xrandr-command))))
#+end_src
** Mode Line
*** Clock
The time is a useful thing to know... and 12-hour clock is for
losers.
#+begin_src emacs-lisp
(setq display-time-24hr-format t)
(display-time-mode 1)
#+end_src
*** Battery
Also useful to know, but only on a laptop... once I'm using this
configuration on Mandarax as well I'll probably have to
conditionally disable it.
#+begin_src emacs-lisp
(display-battery-mode 1)
#+end_src
* Passwords
This was a little more work than I expected... =password-store=
provides a nice interface to =pass=, but annoyingly appears to