version 3 refactor
This commit is contained in:
22
config/xorg/screenlayout/gamedock.sh
Executable file
22
config/xorg/screenlayout/gamedock.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/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/.config/wryn/wallpaper;
|
||||
|
||||
[ -f $HOME/.config/wryn/sfx ] && $HOME/.config/wryn/sfx gamedock
|
Reference in New Issue
Block a user