first collection of useful scripts
This commit is contained in:
14
add-projector
Executable file
14
add-projector
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user