Added volume check to the beginning of configure-stormux stub.
This commit is contained in:
parent
c1af07bf18
commit
c88bd17709
@ -54,6 +54,30 @@ set_timezone() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# make sure the system is at a decent volume
|
||||||
|
volume=50
|
||||||
|
wait=0
|
||||||
|
|
||||||
|
# Wait for pipewire to become available
|
||||||
|
while [[ $wait -lt 30 ]]; do
|
||||||
|
if pgrep pipewire &> /dev/null ; then
|
||||||
|
wait=30 # We don't want to continue the loop
|
||||||
|
else
|
||||||
|
sleep 1
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
while [[ $volume -le 130 ]]; do
|
||||||
|
clear
|
||||||
|
spd-say "If this is loud enough, press enter."
|
||||||
|
if read -t4 ; then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
((volume+=10))
|
||||||
|
fi
|
||||||
|
pactl set-sink-volume @DEFAULT_SINK@ "${volume}%"
|
||||||
|
done
|
||||||
|
((wait++))
|
||||||
|
done
|
||||||
# Offer to switch fenrir layout.
|
# Offer to switch fenrir layout.
|
||||||
echo "Would you like to switch Fenrir to laptop layout?"
|
echo "Would you like to switch Fenrir to laptop layout?"
|
||||||
echo "Press y for yes or n for no followed by enter."
|
echo "Press y for yes or n for no followed by enter."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user