Compare commits

...

2 Commits

Author SHA1 Message Date
0228fa0e4f .config/waybar/scripts/get_volume.sh 2025-09-03 23:11:27 +02:00
8a9e00f168 .config/sway/scripts/get_volume.sh 2025-09-03 23:11:13 +02:00
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
echo "${get_volume}% "
#get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
get_volume=$(pactl list sinks | grep "Volume:" | head -1 | awk '{print $5}')
echo "${get_volume} "

View File

@ -1,4 +1,5 @@
#!/bin/bash
get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
echo "${get_volume}% "
#get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
get_volume=$(pactl list sinks | grep "Volume:" | head -1 | awk '{print $5}')
echo "${get_volume} "