From: Mike Frysinger Date: Thu, 20 Feb 2020 03:42:00 +0000 (-0500) Subject: aliases: add more tv shortcuts X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e028403069914a06b837fb0c239212b2580e1bde;p=home.git aliases: add more tv shortcuts --- diff --git a/.profile.d/aliases.sh b/.profile.d/aliases.sh index dbbf4f4..0b63387 100644 --- a/.profile.d/aliases.sh +++ b/.profile.d/aliases.sh @@ -27,10 +27,13 @@ alias quake4='quake4 +set s_driver oss' alias rrsync='rsync -Hav --inplace --progress' alias s='aspell -a' sss() { aspell -a <<<"$*"; } -smplayer() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec mplayer "$@" >/dev/null 2>&1' sh "$@" ; } -smpv() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec mpv "$@"' sh "$@" ; } -svlc() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec vlc "$@" >/dev/null 2>&1' sh "$@" ; } -svnc() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec x11vnc -q -nopw' ; } +sdisp() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec "$0" "$@"' "$@" ; } +smplayer() { sdisp mplayer "$@" ; } +smpv() { sdisp mpv "$@" ; } +svlc() { sdisp vlc "$@" ; } +svnc() { sdisp x11vnc -q -nopw ; } +sweb() { sdisp google-chrome-beta "$@" ; } +sxdg() { sdisp xdg-open "$@" ; } alias trc=transmission-remote-cli alias xine='xine -l'