Added screenlayouts for new computer

This commit is contained in:
Wryn Wagner
2020-09-17 16:26:20 -06:00
parent ca45ee273c
commit 23d849d999
4 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#!/bin/sh
RESOLUTION='1920x1080';
[ $1 ] && RESOLUTION="$1";
CURRENT_MONITOR=$(xrandr | grep 'primary' | awk '{print $1;}' | tail -n 1);
xrandr\
--output "$CURRENT_MONITOR" --primary\
--rotate normal\
--pos 0x0\
--mode $RESOLUTION\
;
for display in $(xrandr | grep connect | awk '{print $1;}' | grep -v "$CURRENT_MONITOR"); do
xrandr --output $display --off;
done;
feh --bg-fill --randomize $HOME/.wallpaper;