dotfiles/dotfiles/config/autorandr/home_tv/postswitch

7 lines
156 B
Bash
Executable File

#!/usr/bin/env zsh
# -*- mode:sh
hdmi_sink="$(pahelper | tr -d '\\n' | tr '>' '\\n' | grep hdmi | grep -Eo ': [0-9]+' | tr -d ':')"
pahelper "$hdmi_sink"