From e7dee8ee42cc533970457245b4cda69461fc60fb Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 26 Oct 2020 19:19:18 +0200 Subject: [PATCH] shellrc: alias alsamixer file if it exists --- rc/bashrc | 6 ++++++ rc/zshrc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index 8f28290d..8761d845 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -520,6 +520,12 @@ alias netstat-listening-ports="netstat -plnt" alias mpvm="mpv --no-video" alias mpvms="mpv --no-video --shuffle" +# Compatibility with my i3 alsactl mess +if [ -f ~/.config/asound.state ] +then + alias alsactl="\alsactl -f ~/.config/asound.state" +fi + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/rc/zshrc b/rc/zshrc index 64cf0518..05342b17 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -497,6 +497,12 @@ alias netstat-listening-ports="netstat -plnt" alias mpvm="mpv --no-video" alias mpvms="mpv --no-video --shuffle" +# Compatibility with my i3 alsactl mess +if [ -f ~/.config/asound.state ] +then + alias alsactl="\alsactl -f ~/.config/asound.state" +fi + # Allow custom aliases to be put in .aliases or .zsh_aliases . # .aliases