aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2019-07-07 13:57:04 +0200
committerDavid Runge <dave@sleepmap.de>2019-07-07 13:57:04 +0200
commit85597e7ba017edfc4068eee37732a17e74f3176b (patch)
tree4c6735d315099fd7fe739d8767368fb1a1c91567
parent218b496ed8c630d6e44bc50aedade8006617b8b9 (diff)
downloaddotfiles-85597e7ba017edfc4068eee37732a17e74f3176b.tar.gz
dotfiles-85597e7ba017edfc4068eee37732a17e74f3176b.tar.bz2
dotfiles-85597e7ba017edfc4068eee37732a17e74f3176b.tar.xz
dotfiles-85597e7ba017edfc4068eee37732a17e74f3176b.zip
.zsh.after/aliases.zsh: Setting mpv alias depending on whether on Xwayland or X11.
-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