added safety to newga and sleep delay to distro script
This commit is contained in:
7
newbga
7
newbga
@@ -29,6 +29,13 @@ mpv="mpv --wid WID --no-config --keepaspect=no --loop \
|
||||
# First monitor
|
||||
xwinwrap -g 1920x1080 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape1" & > /dev/null 2>&1 &
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user