Skip to content

Instantly share code, notes, and snippets.

@smlb
Created October 6, 2017 19:35
Show Gist options
  • Save smlb/f06ad57f55a3b85908d2ec8e62979bb7 to your computer and use it in GitHub Desktop.
Save smlb/f06ad57f55a3b85908d2ec8e62979bb7 to your computer and use it in GitHub Desktop.
if [[ $(xrandr | awk '/HDMI-0/ {print $2}') == "connected" ]]; then
exec i3 -c ~/.config/i3/dual
else
exec i3
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment