mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Fix audio startup on desktop
This commit is contained in:
parent
22ff857994
commit
2a4937053d
@ -26,8 +26,8 @@ function fixPulse() {
|
|||||||
function launchi3() {
|
function launchi3() {
|
||||||
if [ -z "$skipi3" ]; then
|
if [ -z "$skipi3" ]; then
|
||||||
echo Opening i3wm sound workspaces
|
echo Opening i3wm sound workspaces
|
||||||
sleep .1 && i3-msg 'workspace 5; exec librewolf'
|
sleep .1 && i3-msg 'workspace 5; exec brave-browser'
|
||||||
sleep 5.1 && python ~/bin/start-firefox.py
|
#sleep 5.1 && python ~/bin/start-firefox.py
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,6 +59,13 @@ function renameInterface() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Restart the Wireplumber service.
|
||||||
|
function restartWireplumber() {
|
||||||
|
systemctl --user stop wireplumber
|
||||||
|
sleep 5
|
||||||
|
systemctl --user restart wireplumber
|
||||||
|
}
|
||||||
|
|
||||||
# arg parser
|
# arg parser
|
||||||
for arg in "$@"
|
for arg in "$@"
|
||||||
do
|
do
|
||||||
@ -70,20 +77,12 @@ done
|
|||||||
|
|
||||||
# Wire sinks
|
# Wire sinks
|
||||||
setupSinks
|
setupSinks
|
||||||
connectSinks
|
|
||||||
status=$?
|
|
||||||
while [[ $status -eq 0 ]]; do
|
|
||||||
echo "Connecting Sinks"
|
|
||||||
connectSinks
|
|
||||||
status=$?
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
# Rename Audio Devices
|
|
||||||
#renameInterface
|
|
||||||
|
|
||||||
# Eurorack audio interface
|
# Eurorack audio interface
|
||||||
sh ~/bin/audio/es9start.sh
|
sh ~/bin/audio/es9start.sh
|
||||||
|
|
||||||
launchi3
|
launchi3
|
||||||
systemctl --user restart polybar
|
systemctl --user restart polybar
|
||||||
|
sleep 5
|
||||||
|
restartWireplumber
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user