Last active
October 16, 2024 12:32
-
-
Save luigiMinardi/aef4c91df7ba9f533115bd156f9db0a9 to your computer and use it in GitHub Desktop.
Some .sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change the background video on manjaro xfce using xwinwrap and mpv | |
echo "$1 the path of your new bg" | |
kill $(pgrep xwinwrap) | |
echo "xwinwrap -fs -fdt -ni -b -nf -- mpv -wid %WID --no-audio --loop \"$1\"" | sudo tee /usr/local/bin/Live.sh | |
xwinwrap -fs -fdt -ni -b -nf -- mpv -wid %WID --no-audio --loop "$1" & disown | |
# tutorial at https://forum.manjaro.org/t/howto-have-live-wallpaper-on-manjaro-gnome/64875 | |
# Live.sh has the following | |
# xwinwrap -fs -fdt -ni -b -nf -- mpv -wid WID --no-audio --loop "/path/to/your/videofile" | |
# maybe the tee can be discarded on the non commented command above, this is a very old script that I did without knowing much. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
# play mpv video at window size if the video has more size than the screen | |
mpv --autofit-larger=93%x93% "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment