dotwryn/config/xserver/screenlayout/undock.sh

18 lines
451 B
Bash
Raw Normal View History

2020-09-17 22:26:20 +00:00
#!/bin/sh
NATIVE_MONITOR='eDP1';
xrandr\
--output "$NATIVE_MONITOR" --primary\
--rotate normal\
--pos 0x0\
--mode $(xrandr | grep -A 2 "$NATIVE_MONITOR" | sed -n '2 p' | awk '{print $1;}')\
;
for display in $(xrandr | grep connect | awk '{print $1;}' | grep -v "$NATIVE_MONITOR"); do
xrandr --output $display --off;
done;
feh --bg-fill --randomize $HOME/.config/wryn/wallpaper;
2020-11-17 22:11:42 +00:00
[ -f $HOME/.config/wryn/sfx ] && $HOME/.config/wryn/sfx undock