diff options
author | Thanos Apollo <[email protected]> | 2024-03-05 06:03:33 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-05 06:03:33 +0200 |
commit | 71ca2618054e822b793815441cbc05d28cdc4bed (patch) | |
tree | 9b5cc5b34d51cd58f874ad6c86ad6dae51e0446c | |
parent | 4d8fc43c428c77a1b2cd470c68de151125578ebf (diff) |
stumpwm: Update modeline
-rw-r--r-- | .stumpwm.d/modeline.lisp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.stumpwm.d/modeline.lisp b/.stumpwm.d/modeline.lisp index eee5db2..cf9bcc3 100644 --- a/.stumpwm.d/modeline.lisp +++ b/.stumpwm.d/modeline.lisp @@ -1,8 +1,12 @@ ;; Modeline configuration (load "~/.stumpwm.d/colors.lisp") + +(setf *default-package* :stumpwm) + (load-module "battery-portable") -(stumpwm:load-module "mem") -(stumpwm:load-module "cpu") +;; (stumpwm:load-module "stumptray") +(load-module "mem") +(load-module "cpu") (setf *mode-line-timeout* 2) (setf *group-format* "%t") @@ -22,10 +26,10 @@ (setf *time-modeline-string* "%a %d/%m/%Y | %H:%M") (setf stumpwm:*screen-mode-line-format* - (list "%g ^> %C| RAM: %M | VOL:" + (list "%g ^> %C| RAM:%M| VOL:" '(:eval (string-trim '(#\Newline) - (stumpwm:run-shell-command "pamixer --get-volume" t))) - "% | " + (stumpwm:run-shell-command "amixer get Master | awk '/Front Left:/ { print substr($5, 2, length($5)-2) }'" t))) + " | " ;; Check when hermes(laptop) t display battery (when (equal (asdf:hostname) "hermes") "BAT:%B |") |