dotfiles/.config/i3/scripts/get_volume.sh

5 lines
118 B
Bash
Raw Normal View History

2023-01-03 03:33:36 +01:00
#!/bin/bash
get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
echo "${get_volume}% "