dots/.bin/xrandr/get-displays

4 lines
84 B
Bash
Executable File

#!/usr/bin/env bash
xrandr -q --current | sed -n 's/^\([^ ]\+\) connected .*/\1/p'