From 199b76b6aaacc8b86a9d04f94258364f5073ddf8 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 21 Dec 2021 12:46:49 +0100 Subject: zsh: Set alias for less, modify mpv .config/zsh/includes/aliases.zsh: Set alias for less with default flags. Change alias for mpv to use cache by default and connect to a Fireface800 when using jack (should be done using wireplumber in the future). --- .config/zsh/includes/aliases.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/zsh/includes/aliases.zsh b/.config/zsh/includes/aliases.zsh index 20a055f..862384b 100644 --- a/.config/zsh/includes/aliases.zsh +++ b/.config/zsh/includes/aliases.zsh @@ -38,6 +38,7 @@ alias lla='ls -lA' alias lsfw='ls -lah /dev|grep fw' alias lsvid='ls -lah /dev|grep video' +alias less='less -F -g -i -M -R -S -w -X -z -4' #zsh # Lists the ten most used commands. @@ -49,9 +50,9 @@ for index ({1..9}) alias "$index"="cd +${index}"; unset index #MPLAYER alias mplayer='mplayer -ao jack,pulse,alsa' if pgrep Xwayland > /dev/null; then - alias mpv='mpv --audio-channels=stereo --gpu-context=wayland -ao=jack,pulse,alsa --sub-auto=fuzzy --jack-port="minimixer:in1_*"' + alias mpv='mpv --audio-channels=stereo --cache=yes --gpu-context=wayland -ao=jack,pulse,alsa --sub-auto=fuzzy --jack-port="Fireface 800 Pro:playback_*"' else - alias mpv='mpv --audio-channels=stereo -ao=jack,pulse,alsa --sub-auto=fuzzy --jack-port="minimixer:in1_*"' + alias mpv='mpv --audio-channels=stereo --cache=yes -ao=jack,pulse,alsa --sub-auto=fuzzy --jack-port="Fireface 800 Pro:playback_*"' fi if [[ "$VENDOR" == "apple" ]]; then alias mpv='mpv --sub-auto=fuzzy' -- cgit v1.2.3-54-g00ecf