Add pactl automation

This commit is contained in:
Roland Thomas Jr 2023-06-24 17:44:14 -04:00
parent 91e5d79fed
commit d25a67df95
1 changed files with 5 additions and 2 deletions

View File

@ -5,12 +5,15 @@ set --export MANPAGER "sh -c 'col -bx | bat -l man -p'"
set --export QT_QPA_PLATFORMTHEME "gtk2"
if status is-interactive
# Commands to run in interactive sessions can go here
end
# Start X at login
if status --is-login
while pactl load-module module-detect
end
if not pactl set-default-sink alsa_output.0.hdmi-stereo
pactl set-default-sink alsa_output.1.hdmi-stereo
end
if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty
end