From b65223f7ff7e76c3cf83f9fe912a266a414d810a Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 7 Feb 2021 16:30:47 +0100 Subject: aliases.zsh: Drop privileges and change mpv args .zsh.after/aliases.zsh: Adhere to changes to mpv for how to pass parameters. Do not escalate privileges if not necessary for systemctl related calls. --- .zsh.after/aliases.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh index be12367..80e4f29 100644 --- a/.zsh.after/aliases.zsh +++ b/.zsh.after/aliases.zsh @@ -38,9 +38,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' + alias mpv='mpv --audio-channels=stereo --gpu-context=wayland -ao=jack,pulse,alsa --sub-auto=fuzzy --jack-port="minimixer:in1_*"' else - alias mpv='mpv --audio-channels=stereo -ao jack,pulse,alsa --sub-auto=fuzzy' + alias mpv='mpv --audio-channels=stereo -ao=jack,pulse,alsa --sub-auto=fuzzy --jack-port="minimixer:in1_*"' fi if [[ "$VENDOR" == "apple" ]]; then alias mpv='mpv --sub-auto=fuzzy' @@ -110,7 +110,7 @@ alias sdss='sudo systemctl --system list-sockets' alias sdsu='sudo systemctl --system list-units' alias sdsuf='sudo systemctl --system list-unit-files' alias sdsdep='sudo systemctl --system list-dependencies' -alias sdscat='sudo systemctl --system cat' +alias sdscat='systemctl --system cat' alias sdsreload='sudo systemctl daemon-reload' alias sds='sudo systemctl -a' alias sdsfail='sudo systemctl -a -l --no-legend --state=failed' @@ -172,7 +172,7 @@ alias pacrs='pacman -Ss' #Search for package(s) in the repositories alias pacli='pacman -Qi' #Display information about a given package in the local database alias pacls='pacman -Qs' #Search for package(s) in the local database alias pacorph='sudo pacman -Qdt' #Search for orphan packages -alias paclal='sudo pacman -Ql' #List installed files of a given package +alias paclal='pacman -Ql' #List installed files of a given package alias pacg='pacman -Sg' #List all groups or all packages in specified group alias pacclean='sudo pacman -Sc' #Remove all packages from local repository, not installed atm, remove all unused repos alias pacconf='sudo find /etc -type f \( -name "*.pacsave" -o -name "*.pacnew" \)' #Search for .pacnew and .pacsave files -- cgit v1.2.3-54-g00ecf