2020-09-17 22:26:20 +00:00
|
|
|
#!/bin/sh
|
2021-02-25 01:15:23 +00:00
|
|
|
source "$HOME/.config/wryn/env/env"
|
|
|
|
|
2020-09-17 22:26:20 +00:00
|
|
|
NATIVE_MONITOR='eDP1';
|
2020-12-04 20:02:51 +00:00
|
|
|
NATIVE_MODE="$(xrandr | grep -A 2 "$NATIVE_MONITOR" | sed -n '2 p' | awk '{print $1;}')";
|
|
|
|
|
|
|
|
[[ $(xrandr -q | grep ' connected' | wc -l) -eq 1 ]] \
|
|
|
|
&& xrandr -q | grep "$NATIVE_MONITOR connected" | grep -q '3840' \
|
|
|
|
&& NATIVE_MODE='2880x1620';
|
2020-09-17 22:26:20 +00:00
|
|
|
|
|
|
|
xrandr\
|
|
|
|
--output "$NATIVE_MONITOR" --primary\
|
|
|
|
--rotate normal\
|
|
|
|
--pos 0x0\
|
2020-12-04 20:02:51 +00:00
|
|
|
--mode "$NATIVE_MODE"\
|
2020-09-17 22:26:20 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
for display in $(xrandr | grep connect | awk '{print $1;}' | grep -v "$NATIVE_MONITOR"); do
|
|
|
|
xrandr --output $display --off;
|
|
|
|
done;
|
|
|
|
|
2021-02-25 01:15:23 +00:00
|
|
|
"$DOTWRYN/bin/desktop/feh/randomize-background.sh"
|
2020-11-17 22:11:42 +00:00
|
|
|
[ -f $HOME/.config/wryn/sfx ] && $HOME/.config/wryn/sfx undock
|