Skip to content

Instantly share code, notes, and snippets.

@luigiMinardi
Last active October 16, 2024 12:32
Show Gist options
  • Save luigiMinardi/aef4c91df7ba9f533115bd156f9db0a9 to your computer and use it in GitHub Desktop.
Save luigiMinardi/aef4c91df7ba9f533115bd156f9db0a9 to your computer and use it in GitHub Desktop.
Some .sh
# 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.
# !/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