6 lines
165 B
Bash
Executable File
6 lines
165 B
Bash
Executable File
#!/bin/bash
|
|
sl=$(amixer get Master | tail -n 1)
|
|
status=$(echo "${sl}" | grep -wo "on")
|
|
volume=$(echo "${sl}" | awk -F ' ' '{print $5}' | tr -d '[]%')
|
|
echo ${volume}
|