Add pactl automation
This commit is contained in:
parent
91e5d79fed
commit
d25a67df95
|
@ -5,12 +5,15 @@ set --export MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||||
set --export QT_QPA_PLATFORMTHEME "gtk2"
|
set --export QT_QPA_PLATFORMTHEME "gtk2"
|
||||||
|
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
|
|
||||||
# Commands to run in interactive sessions can go here
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Start X at login
|
# Start X at login
|
||||||
if status --is-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
|
if test -z "$DISPLAY" -a $XDG_VTNR = 1
|
||||||
exec startx -- -keeptty
|
exec startx -- -keeptty
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue