fixed bg comarison
This commit is contained in:
parent
3cd83ed450
commit
977f806f13
8
newbga
8
newbga
@ -11,7 +11,7 @@ base="/home/shockrah/Pictures/VPapes"
|
|||||||
pape1=`ls "${HOME}/Pictures/VPapes" | shuf | head -n 1`
|
pape1=`ls "${HOME}/Pictures/VPapes" | shuf | head -n 1`
|
||||||
pape2=`ls "${HOME}/Pictures/VPapes" | shuf | head -n 1`
|
pape2=`ls "${HOME}/Pictures/VPapes" | shuf | head -n 1`
|
||||||
echo
|
echo
|
||||||
while "$pape1" = "$pape2"
|
while [ "$pape1" = "$pape2" ]
|
||||||
do
|
do
|
||||||
pape2=`ls "${HOME}/Pictures/VPapes" | shuf | head -n 1`
|
pape2=`ls "${HOME}/Pictures/VPapes" | shuf | head -n 1`
|
||||||
done
|
done
|
||||||
@ -29,8 +29,8 @@ 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
|
||||||
echo "$pape1" > $HOME/.cache/newbga_img
|
#echo "$pape1" > $HOME/.cache/newbga_img
|
||||||
|
|
||||||
# Quick check if we even have a second monitor at all
|
# Quick check if we even have a second monitor at all
|
||||||
c=`xrandr | grep ' connected' | wc -l`
|
c=`xrandr | grep ' connected' | wc -l`
|
||||||
@ -38,6 +38,8 @@ if [ $c = "1" ]
|
|||||||
then
|
then
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
|
echo second monitor;
|
||||||
|
exit
|
||||||
# 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