first collection of useful scripts

This commit is contained in:
shockrahwow
2019-05-15 01:51:58 -07:00
commit 57dfb50219
13 changed files with 51 additions and 0 deletions

14
add-projector Executable file
View 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"