From b8126291082c36fe26cbb170214c3919f6aa9388 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 28 Jan 2024 22:08:06 +0200 Subject: stumpwm:(modeline) Update volume command with amixer --- .stumpwm.d/modeline.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.stumpwm.d/modeline.lisp') diff --git a/.stumpwm.d/modeline.lisp b/.stumpwm.d/modeline.lisp index 6718ef2..2701e70 100644 --- a/.stumpwm.d/modeline.lisp +++ b/.stumpwm.d/modeline.lisp @@ -30,7 +30,7 @@ "grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {printf(\"%.2f\", usage)}'" t))) "% | VOL:" '(:eval (string-trim '(#\Newline) - (stumpwm:run-shell-command "pamixer --get-volume" t))) + (stumpwm:run-shell-command "amixer sget Master | grep 'Right:' | awk -F'[][]' '{print $2}'" t))) "% | " ;; Check when hermes(laptop) t display battery (when (equal (asdf:hostname) "hermes") -- cgit v1.2.3