dotwryn/config/xorg/screenlayout/gamedock.sh
2021-09-15 01:48:37 -06:00

23 lines
533 B
Bash
Executable File

#!/bin/sh
source "$HOME/.config/wryn/env/env.zsh"
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;
"$DOTWRYN/bin/desktop/feh/randomize-background.sh"
[ -f $HOME/.config/wryn/sfx ] && $HOME/.config/wryn/sfx gamedock