From 01f1011215cc0aed1a755f30c10d19cdeca56660 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 28 Aug 2017 13:12:16 -0700 Subject: [PATCH] [Linux] Always switch to hdmi audio source when at home_tv --- dotfiles/config/autorandr/home_tv/postswitch | 6 ++++++ dotfiles/config/autorandr/postswitch | 1 + 2 files changed, 7 insertions(+) create mode 100755 dotfiles/config/autorandr/home_tv/postswitch diff --git a/dotfiles/config/autorandr/home_tv/postswitch b/dotfiles/config/autorandr/home_tv/postswitch new file mode 100755 index 00000000..ceaacb84 --- /dev/null +++ b/dotfiles/config/autorandr/home_tv/postswitch @@ -0,0 +1,6 @@ +#!/usr/bin/env zsh +# -*- mode:sh + +hdmi_sink="$(pahelper.sh | tr -d '\\n' | tr '>' '\\n' | grep hdmi | grep -Eo ': [0-9]+' | tr -d ':')" + +pahelper.sh "$hdmi_sink" diff --git a/dotfiles/config/autorandr/postswitch b/dotfiles/config/autorandr/postswitch index 48e4fac2..4a8d34fb 100755 --- a/dotfiles/config/autorandr/postswitch +++ b/dotfiles/config/autorandr/postswitch @@ -1,3 +1,4 @@ #!/usr/bin/env zsh +# -*- mode:sh wallpaper