2019-09-26 16:13:45 +00:00
|
|
|
#!/bin/sh
|
2019-12-31 00:41:56 +00:00
|
|
|
if xrandr | grep -q "DP-0 connected"; then
|
|
|
|
xrandr \
|
|
|
|
--output DP-0 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\
|
|
|
|
--output DP-1 --off\
|
|
|
|
--output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\
|
|
|
|
--output DP-3 --off\
|
|
|
|
--output DP-4 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\
|
|
|
|
--output HDMI-0 --off\
|
|
|
|
;
|
|
|
|
else
|
|
|
|
xrandr \
|
|
|
|
--output DP-0 --off\
|
|
|
|
--output HDMI-0 --off\
|
|
|
|
--output DP-1 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\
|
|
|
|
--output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\
|
|
|
|
--output DP-3 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\
|
|
|
|
--output DP-4 --off\
|
|
|
|
;
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2019-12-31 21:26:32 +00:00
|
|
|
ROLL=$(($RANDOM%5));
|
2019-12-02 17:13:12 +00:00
|
|
|
|
|
|
|
if [ $ROLL -eq 0 ]; then
|
|
|
|
feh --bg-fill\
|
|
|
|
$HOME/Pictures/bg/midoriya.jpg\
|
|
|
|
$HOME/Pictures/bg/altaria.jpg\
|
|
|
|
$HOME/Pictures/bg/captainfalcon.jpg\
|
2019-12-31 21:26:32 +00:00
|
|
|
>/dev/null 2>&1;
|
2019-12-02 17:13:12 +00:00
|
|
|
elif [ $ROLL -eq 1 ]; then
|
|
|
|
feh --bg-fill\
|
|
|
|
$HOME/Pictures/bg/dimitri.jpg\
|
|
|
|
$HOME/Pictures/bg/claude.jpg\
|
|
|
|
$HOME/Pictures/bg/edelgard.jpg\
|
2019-12-31 21:26:32 +00:00
|
|
|
>/dev/null 2>&1;
|
2019-12-02 17:13:12 +00:00
|
|
|
elif [ $ROLL -eq 2 ]; then
|
|
|
|
feh --bg-fill\
|
|
|
|
$HOME/Pictures/bg/fe8.jpg\
|
|
|
|
$HOME/Pictures/bg/micaiah.jpg\
|
2019-12-02 19:36:26 +00:00
|
|
|
$HOME/Pictures/bg/roy.jpg\
|
2019-12-31 21:26:32 +00:00
|
|
|
>/dev/null 2>&1;
|
2019-12-02 17:13:12 +00:00
|
|
|
elif [ $ROLL -eq 3 ]; then
|
|
|
|
feh --bg-fill\
|
2019-12-02 19:36:26 +00:00
|
|
|
$HOME/Pictures/bg/chrom.png\
|
2019-12-02 17:13:12 +00:00
|
|
|
$HOME/Pictures/bg/byleth.jpg\
|
|
|
|
$HOME/Pictures/bg/link.jpg\
|
2019-12-31 21:26:32 +00:00
|
|
|
>/dev/null 2>&1;
|
|
|
|
elif [ $ROLL -eq 4 ]; then
|
|
|
|
random_image="$(find $HOME/Pictures/bg -type f | shuf -n 1)";
|
|
|
|
feh --bg-fill\
|
|
|
|
$random_image\
|
|
|
|
>/dev/null 2>&1;
|
2019-12-02 17:13:12 +00:00
|
|
|
fi
|