rice/add-projector

15 lines
392 B
Plaintext
Raw Normal View History

2019-05-15 08:51:58 +00:00
#!/bin/bash
# In case you've ever needed to setup
output=$(xrandr|grep ' connected'|awk '{print $1}' | \
dmenu -i -p 'Device to attach')
[ -z "$output" ] && exit 0
# Now we pick out where this goes
side=$(printf 'left-of\nright-of\nabove\nbelow' | \
dmenu -i -p 'Side')
[ -z "$side" ] && exit 0
# Just echo for demonstrative purposes
echo "xrandr --output $output --auto --$side eDP-1"