From 7f3e606d4102dd68d69ab049838a686fcfe12d42 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Tue, 1 Aug 2023 02:25:04 -0400 Subject: Display time and battery percent in modeline --- init.el | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/init.el b/init.el index fc1d882..109f5e7 100644 --- a/init.el +++ b/init.el @@ -281,6 +281,35 @@ (set-face-attribute 'variable-pitch nil :font "Noto Sans" :height 110 :weight 'regular) +;; --------------------------------- +;; Modeline +;; -------- +;; I'm losing the will to give a +;; shit about these descriptions. +;; --------------------------------- + +;; Display time in modeline +(defvar mm/display-time-format-string "%H:%M" + "Time format for `display-time-mode'.") + +(setq display-time-format mm/display-time-format-string + display-time-default-load-average nil) + +(defface mm/display-time-face + '((((type x w32 mac)) + (:foreground "DeepSkyBlue"))) + "Face used to display the time in the modeline.") + +(setq display-time-string-forms + '((propertize (concat " " 24-hours ":" minutes " ") + 'face 'mm/display-time-face))) + +(display-time-mode) + + +;; Display battery percentage in modeline +(display-battery-mode) + ;; --------------------------------- ;; Icons ;; ----- -- cgit v1.2.3