summaryrefslogtreecommitdiff
path: root/.stumpwm.d/modeline.lisp
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-28 22:08:06 +0200
committerThanos Apollo <[email protected]>2024-01-28 22:08:06 +0200
commitb8126291082c36fe26cbb170214c3919f6aa9388 (patch)
tree07c04ae4f0800e150d58bbe50b9fd9102b2dbf3e /.stumpwm.d/modeline.lisp
parent8c93b936e1d08732485eaf66fcfd8d50700ee727 (diff)
stumpwm:(modeline) Update volume command with amixer
Diffstat (limited to '.stumpwm.d/modeline.lisp')
-rw-r--r--.stumpwm.d/modeline.lisp2
1 files changed, 1 insertions, 1 deletions
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")