version 3 refactor

This commit is contained in:
Wryn Wagner
2021-02-24 17:38:02 -07:00
parent 35fc078b0e
commit 67e9710ab0
29 changed files with 187 additions and 180 deletions

View File

@ -0,0 +1,20 @@
#!/bin/sh
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;
feh --bg-fill --randomize $HOME/.config/wryn/wallpaper;
[ -f $HOME/.config/wryn/sfx ] && $HOME/.config/wryn/sfx homedock