* newbga and newbga-audio for gif's and videos respectively
Basically this is how i am going to have gifs and video backgrounds be seperate + vpape-ctl now being tracked as a way to control moving backgrounds
This commit is contained in:
parent
0d0f48e44f
commit
a7e8d5d6d7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*swp
|
*swp
|
||||||
test/
|
test/
|
||||||
locs.conf
|
locs.conf
|
||||||
|
msg
|
||||||
|
12
newbga
12
newbga
@ -7,10 +7,10 @@
|
|||||||
pkill -9 xwinwrap
|
pkill -9 xwinwrap
|
||||||
#
|
#
|
||||||
#cacheFile="${HOME}/.cache/mpvbg.pid" # used in case we want a second proc but honestly kill + pgrep works
|
#cacheFile="${HOME}/.cache/mpvbg.pid" # used in case we want a second proc but honestly kill + pgrep works
|
||||||
base="/home/shockrah/Videos/Papes"
|
base="/home/shockrah/Pictures/VPapes"
|
||||||
|
|
||||||
# picking out the video to use here
|
# picking out the video to use here
|
||||||
pape=`ls ${HOME}/Videos/Papes/ | shuf | dmenu -i -l 10 -p 'Pick a pape :^)'`
|
pape=`ls ${HOME}/Pictures/VPapes | shuf | dmenu -i -l 10 -p 'Pick a pape :^)'`
|
||||||
if [ -z "$pape" ];then
|
if [ -z "$pape" ];then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@ -19,7 +19,7 @@ fi
|
|||||||
#xwinwrap -g 1920x1080 -ov -- mpv -wid WID ~/.wallpapers/water.mp4
|
#xwinwrap -g 1920x1080 -ov -- mpv -wid WID ~/.wallpapers/water.mp4
|
||||||
# WARNING: this mpv command is super outdated(like 2 years) but it might still be useful
|
# WARNING: this mpv command is super outdated(like 2 years) but it might still be useful
|
||||||
# to someone out there
|
# to someone out there
|
||||||
_unused_mpv="mpv --wid=0 --no-config --keepaspect=no --loop \
|
mpv="mpv -wid WID --no-config --keepaspect=no --loop \
|
||||||
--no-border --vd-lavc-fast --x11-bypass-compositor=no \
|
--no-border --vd-lavc-fast --x11-bypass-compositor=no \
|
||||||
--gapless-audio=yes --vo=x11 --hwdec=auto \
|
--gapless-audio=yes --vo=x11 --hwdec=auto \
|
||||||
--x11-name=mpvbg"
|
--x11-name=mpvbg"
|
||||||
@ -28,6 +28,8 @@ _unused_mpv="mpv --wid=0 --no-config --keepaspect=no --loop \
|
|||||||
# The magic here happens with xwinwrap the flags given to mpv don't really matter
|
# The magic here happens with xwinwrap the flags given to mpv don't really matter
|
||||||
# unless you have an mpv config the flags below are pretty much the only flags you
|
# unless you have an mpv config the flags below are pretty much the only flags you
|
||||||
# need to get this working
|
# need to get this working
|
||||||
xwinwrap -g 1920x1080 -ov -b -un -sh rectangle -fdt -ni -- \
|
xwinwrap -g 1920x1080+1920 -ov -b -un -sh rectangle -fdt -ni -- \
|
||||||
mpv -wid WID --no-border --vo=x11 $base/"$pape" &
|
$mpv $base/"$pape" &
|
||||||
|
|
||||||
|
# welcome to the rice fields
|
||||||
|
|
||||||
|
34
newbga-audio
Executable file
34
newbga-audio
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Shoutout to mitchweaver on gitgub for the script as a useful base for this one
|
||||||
|
# Link to exact script: https://github.com/mitchweaver/bin/blob/41f3d5c6cbc92173be232e48fd24213c91a16db1/mpv/mpvbg
|
||||||
|
# Original version of the script that I used to find this script
|
||||||
|
# There's lots of good scripts in that repository so check them all out
|
||||||
|
|
||||||
|
pkill -9 xwinwrap
|
||||||
|
#
|
||||||
|
#cacheFile="${HOME}/.cache/mpvbg.pid" # used in case we want a second proc but honestly kill + pgrep works
|
||||||
|
base="/home/shockrah/Videos/Papes"
|
||||||
|
|
||||||
|
# picking out the video to use here
|
||||||
|
pape=`ls ${HOME}/Videos/Papes/ | shuf | dmenu -i -l 10 -p 'Pick a pape :^)'`
|
||||||
|
if [ -z "$pape" ];then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#xwinwrap -g 1920x1080 -ov -- mpv -wid WID ~/.wallpapers/water.mp4
|
||||||
|
# WARNING: this mpv command is super outdated(like 2 years) but it might still be useful
|
||||||
|
# to someone out there
|
||||||
|
_unused_mpv="mpv --wid=0 --no-config --keepaspect=no --loop \
|
||||||
|
--no-border --vd-lavc-fast --x11-bypass-compositor=no \
|
||||||
|
--gapless-audio=yes --vo=x11 --hwdec=auto \
|
||||||
|
--x11-name=mpvbg"
|
||||||
|
|
||||||
|
|
||||||
|
# The magic here happens with xwinwrap the flags given to mpv don't really matter
|
||||||
|
# unless you have an mpv config the flags below are pretty much the only flags you
|
||||||
|
# need to get this working
|
||||||
|
xwinwrap -g 1920x1080+1920 -ov -b -un -sh rectangle -fdt -ni -- \
|
||||||
|
mpv -wid WID --no-border --vo=x11 --input-ipc-server=/tmp/mpv-bg-socket $base/"$pape" &
|
||||||
|
|
||||||
|
# welcome to the rice fields
|
Loading…
Reference in New Issue
Block a user