Browse Source
Simplify the volume query
it is possible to use `--get-volume` to avoid having to strip the percent sign
patch-fontkeys
Ivan Gregurić Ortolan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
bar-functions/dwm_pulse.sh
|
@ -7,7 +7,7 @@ |
|
|
# Dependencies: pamixer |
|
|
# Dependencies: pamixer |
|
|
|
|
|
|
|
|
dwm_pulse () { |
|
|
dwm_pulse () { |
|
|
VOL=$(pamixer --get-volume-human | tr -d '%') |
|
|
|
|
|
|
|
|
VOL=$(pamixer --get-volume) |
|
|
|
|
|
|
|
|
printf "%s" "$SEP1" |
|
|
printf "%s" "$SEP1" |
|
|
if [ "$IDENTIFIER" = "unicode" ]; then |
|
|
if [ "$IDENTIFIER" = "unicode" ]; then |
|
|