diff --git a/configs/appcfg/sway_template b/configs/appcfg/sway_template index d08e9a8..885d451 100644 --- a/configs/appcfg/sway_template +++ b/configs/appcfg/sway_template @@ -230,4 +230,5 @@ exec sxmo_modemmonitortoggle.sh restart exec sxmo_notificationmonitor.sh exec mako exec sxmo_hooks.sh lisgdstart +exec sxmo_hooks.sh audiostart exec sxmo_menumode_toggler.sh diff --git a/configs/appcfg/xinit_template b/configs/appcfg/xinit_template index 94b1f5b..6cca113 100644 --- a/configs/appcfg/xinit_template +++ b/configs/appcfg/xinit_template @@ -17,12 +17,7 @@ conky -c /usr/share/sxmo/appcfg/conky.conf -d #12 hour clock (am/pm) # Force audio over the main speaker # and set a sane default volume -sxmo_audioout.sh Speaker -amixer sset 'Line Out Source' 'Mono Differential','Mono Differential' -amixer set "Line Out" 50% - -# Play a funky startup tune -#mpv --quiet --no-video ~/welcome.ogg & +sxmo_hooks.sh audiostart # You will sometime get SMS or calls from not # country code prefixed phone numbers. To make diff --git a/configs/default_hooks/audiostart b/configs/default_hooks/audiostart new file mode 100644 index 0000000..ee864ac --- /dev/null +++ b/configs/default_hooks/audiostart @@ -0,0 +1,9 @@ +# Force audio over the main speaker +# and set a sane default volume + +sxmo_audioout.sh Speaker +amixer sset 'Line Out Source' 'Mono Differential','Mono Differential' +amixer set "Line Out" 75% + +# Play a funky startup tune if you want (disabled by default) +#mpv --quiet --no-video ~/welcome.ogg &