Added script to facilitate connection to tv for gaming purposes
This commit is contained in:
parent
2cc3bd19f1
commit
c045b7a17e
20
config/xserver/screenlayout/tvdock.sh
Executable file
20
config/xserver/screenlayout/tvdock.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
NATIVE_MONITOR='eDP1';
|
||||
TV_DISPLAY=$(xrandr | grep ' connect' | awk '{print $1;}' | grep -v "$NATIVE_MONITOR" | head -n 1);
|
||||
|
||||
[ -z $TV_DISPLAY ] && return; # no external monitor connected; do nothing
|
||||
|
||||
xrandr\
|
||||
--output "$TV_DISPLAY" --primary\
|
||||
--rotate normal\
|
||||
--pos 0x0\
|
||||
--mode 1920x1080\
|
||||
;
|
||||
|
||||
for display in $(xrandr | grep connect | awk '{print $1;}' | grep -v "$TV_DISPLAY"); do
|
||||
xrandr --output $display --off;
|
||||
done;
|
||||
|
||||
feh --bg-fill --randomize $HOME/.config/wryn/wallpaper;
|
||||
|
||||
[ -f $HOME/.config/wryn/sfx ] && $HOME/.config/wryn/sfx gamedock
|
Loading…
x
Reference in New Issue
Block a user