dotfiles/.config/dwm/scripts/get_volume.sh

5 lines
118 B
Bash
Raw Normal View History

2022-05-01 11:58:42 +02:00
#!/bin/bash
get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
2022-05-22 01:17:37 +02:00
echo "${get_volume}% "