added safety to newga and sleep delay to distro script
This commit is contained in:
parent
8142d4bd4d
commit
dc5cd96f97
2
distro
2
distro
@ -37,5 +37,5 @@ o88888"888"88o. "8888"".88 .oo888oo..
|
|||||||
echo "Distro: ${green}`uname -v | awk '{print $3}'`${nc}
|
echo "Distro: ${green}`uname -v | awk '{print $3}'`${nc}
|
||||||
Kernel: ${white}`uname -o`${nc}"
|
Kernel: ${white}`uname -o`${nc}"
|
||||||
echo "=|:^) Art: https://www.asciiart.eu/plants/flowers =|:^)"
|
echo "=|:^) Art: https://www.asciiart.eu/plants/flowers =|:^)"
|
||||||
scrot
|
sleep 1
|
||||||
|
|
||||||
|
7
newbga
7
newbga
@ -29,6 +29,13 @@ mpv="mpv --wid WID --no-config --keepaspect=no --loop \
|
|||||||
# First monitor
|
# First monitor
|
||||||
xwinwrap -g 1920x1080 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape1" & > /dev/null 2>&1 &
|
xwinwrap -g 1920x1080 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape1" & > /dev/null 2>&1 &
|
||||||
echo $! > ${HOME}/.cache/mpvbg.pid
|
echo $! > ${HOME}/.cache/mpvbg.pid
|
||||||
|
|
||||||
|
# Quick check if we even have a second monitor at all
|
||||||
|
c=`xrandr | grep ' connected' | wc -l`
|
||||||
|
if $c = "1"
|
||||||
|
then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
# Second monitor
|
# Second monitor
|
||||||
xwinwrap -g 1920x1080+1920+0 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape2" & > /dev/null 2>&1 &
|
xwinwrap -g 1920x1080+1920+0 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape2" & > /dev/null 2>&1 &
|
||||||
echo $! >> ${HOME}/.cache/mpvbg.pid
|
echo $! >> ${HOME}/.cache/mpvbg.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user