dotwryn/config/xorg/screenlayout/homedock.sh

22 lines
681 B
Bash
Raw Normal View History

2020-09-17 22:26:20 +00:00
#!/bin/sh
2021-09-15 07:48:37 +00:00
source "$HOME/.config/wryn/env/env.zsh"
2021-02-25 01:15:23 +00:00
2020-09-17 22:26:20 +00:00
NATIVE_MONITOR='eDP1';
HOMEDOCK_MONITOR=$(xrandr | grep ' connect' | awk '{print $1;}' | grep -v "$NATIVE_MONITOR" | head -n 1);
[ -z $HOMEDOCK_MONITOR ] && return; # no external monitor connected; do nothing
xrandr\
--output "$HOMEDOCK_MONITOR" --primary\
--rotate normal\
--pos 0x0\
--mode $(xrandr | grep -A 2 "$HOMEDOCK_MONITOR" | sed -n '2 p' | awk '{print $1;}')\
;
for display in $(xrandr | grep connect | awk '{print $1;}' | grep -v "$HOMEDOCK_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 homedock