aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zsh.after/aliases.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh
index 413dd3b..ffd829b 100644
--- a/.zsh.after/aliases.zsh
+++ b/.zsh.after/aliases.zsh
@@ -37,7 +37,11 @@ for index ({1..9}) alias "$index"="cd +${index}"; unset index
#MPLAYER
alias mplayer='mplayer -ao jack,pulse,alsa'
-alias mpv='mpv -ao jack,pulse,alsa --sub-auto=fuzzy'
+if pgrep Xwayland > /dev/null; then
+ alias mpv='mpv --audio-channels=stereo --gpu-context=wayland -ao jack,pulse,alsa --sub-auto=fuzzy'
+else
+ alias mpv='mpv --audio-channels=stereo -ao jack,pulse,alsa --sub-auto=fuzzy'
+fi
if [[ "$VENDOR" == "apple" ]]; then
alias mpv='mpv --sub-auto=fuzzy'
fi