X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=raspbian%2F.bash_aliases;fp=raspbian%2F.bash_aliases;h=0429868972823f80ab91cc19a448720a43241d8a;hb=146c20a9eb231e77138869dcc186d0e132554192;hp=0000000000000000000000000000000000000000;hpb=f97e00104f48bfc894b467d8a368dcf12d752005;p=config
diff --git a/raspbian/.bash_aliases b/raspbian/.bash_aliases
new file mode 100644
index 0000000..0429868
--- /dev/null
+++ b/raspbian/.bash_aliases
@@ -0,0 +1,10 @@
+# for whatever reason, emulationstation gets some strange screen flicker issues
+# if the second display is activated, so ensure it is only started with that off
+alias emulationstation="xrandr --output HDMI-2 --off && emulationstation"
+
+# since the second HDMI only outputs sound with video, we have to ensure it's
+# activated with xrandr if we want to use it for surround sound setup
+alias mpv51="xrandr --output HDMI-2 --auto && AUDIO_HDMI=1 mpv --alsa-ignore-chmap '--audio-channels=5.1(alsa)'"
+alias chromium-upmix="xrandr --output HDMI-2 --auto && chromium-browser --alsa-output-device=stereo51"
+alias alsamixer51="AUDIO_HDMI=1 alsamixer"
+