Start volume a bit quieter and increment more slowly.
This commit is contained in:
@@ -11,7 +11,7 @@ if [[ -f ~/.firstboot ]]; then
|
|||||||
|
|
||||||
# Wait for pipewire to become available
|
# Wait for pipewire to become available
|
||||||
wait=0
|
wait=0
|
||||||
volume=100
|
volume=50
|
||||||
while [[ $wait -lt 30 ]]; do
|
while [[ $wait -lt 30 ]]; do
|
||||||
if pgrep pipewire &> /dev/null ; then
|
if pgrep pipewire &> /dev/null ; then
|
||||||
wait=30 # We don't want to continue the loop
|
wait=30 # We don't want to continue the loop
|
||||||
@@ -25,7 +25,7 @@ if [[ -f ~/.firstboot ]]; then
|
|||||||
if read -t4 ; then
|
if read -t4 ; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
((volume+=10))
|
((volume+=5))
|
||||||
fi
|
fi
|
||||||
pactl set-sink-volume @DEFAULT_SINK@ "${volume}%"
|
pactl set-sink-volume @DEFAULT_SINK@ "${volume}%"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user