mirror of
https://codeberg.org/frosty/dotfiles.git
synced 2024-09-19 11:47:09 -04:00
8 lines
210 B
Bash
Executable file
8 lines
210 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PIPE_FILE="/tmp/pipe-volume"
|
|
[ -p "$PIPE_FILE" ] || mkfifo "$PIPE_FILE"
|
|
|
|
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '/Volume/ { print int($NF * 100) }')
|
|
genbar "$volume" 10 1 >"$PIPE_FILE"
|