dotfiles/.config/dwm/scripts/get_volume.sh
2022-05-01 11:58:42 +02:00

5 lines
113 B
Bash
Executable File

#!/bin/bash
get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
echo "${get_volume}%"