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