It works, and is straightforward to run. I'm running the new Arch image now without issues. And kernel, kernel-related programs, ie, iptables, update without problems. Fast seamless install. It took about 5 minutes from Debian droplet creation to download to Arch replacement installation. And from the github page, "This script also configures the system to run kexec on startup to ensure that the latest installed kernel version is running." So you can then install any kernel after that.
Update 5.3.15: have been runnig this vps without problem since original post.
(Posted earlier in response to a similar inquiry. Edited for brevity/clarity)
I found this on a r/linux or commandline thread sometime ago. If I can find it again I'll be sure to give proper attribution.
Call it something, "livewallpaper.py". Then ./livewallpaper.py [ your video path]. You might want to check this again for python formating. Works on Gnome.
ETA: There was a formatting error @ mpv_options + ' >/dev/null 2>&1 . Fixed.
#!/usr/bin/env python
import os, sys, gi
gi.require_version('Wnck', '3.0')
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Wnck
# Edit this as you like with your mpv options
mpv_title = 'MPV Wallpaper'
mpv_options = '--no-audio --loop --no-input-default-bindings --no-osc'
if len(sys.argv) != 2 or not os.path.isfile(sys.argv[1]):
print('Usage: ' + sys.argv[0] + ' video-path')
exit()
# Gtk initialization
Gtk.init([])
default_screen = Wnck.Screen.get_default()
default_screen.force_update()
# Close previous mpv windows
for window in default_screen.get_windows():
if (window.get_name() == mpv_title):
window.close(0)
# New mpv instance after closing old one
os.system('mpv ' + sys.argv[1] + ' --title="' + mpv_title + '" ' + mpv_options + ' >/dev/null 2>&1 &')
# Signal handler for new windows
def do_window_opened(screen, window):
if (window.get_name() == mpv_title):
window.maximize()
window.set_window_type(Wnck.WindowType.DESKTOP)
window.stick()
window.make_below()
exit(0)
# Event listener
default_screen.connect('window-opened', do_window_opened)
# Main gtk loop
Gtk.main()
There was an update to Gnome Shell just a few days ago. I recently, a couple weeks ago, did a fresh install of Arch on one machine , and also updated other Arch installs along with an Ubuntu 17.10 to 18.04 with Gnome upgrade on another machine. And had what pretty much what you described happen. I even reinstalled Ubuntu. With no change. I then renamed my extensions folder in~/.config/gnome-shell and then relogged into Arch Gnome Shell. The problem was gone. So then it was somewhat methodically re-enabling extensions until I could narrow down if it was an extension and which one.
So, this is what fixed it for me, after some research, you need to grab the .zip from the Workspaces to Dock extension developer's github page and use the extension folder in the archive (it will have the @extension in the name, in place of whatever version you're using now. According to the extension developer he's awaiting approval to upload the fixed version to the Gnome Extension site. This worked on all my Gnome Shell installs both Arch, Arch-based, and Ubuntu. If this helps,fixes, let me know. If there's still an issue, I have some links to recent problems with libput on Arch, too.
HTH
ETA: Also had i3 and XFCE4 installed on these machines and under those there was no problem.
I created a new Arch install on Digital Ocean using this script:
https://github.com/gh2o/digitalocean-debian-to-arch
It works, and is straightforward to run. I'm running the new Arch image now without issues. And kernel, kernel-related programs, ie, iptables, update without problems. Fast seamless install. It took about 5 minutes from Debian droplet creation to download to Arch replacement installation. And from the github page, "This script also configures the system to run kexec on startup to ensure that the latest installed kernel version is running." So you can then install any kernel after that. Update 5.3.15: have been runnig this vps without problem since original post. (Posted earlier in response to a similar inquiry. Edited for brevity/clarity)
I found this on a r/linux or commandline thread sometime ago. If I can find it again I'll be sure to give proper attribution.
Call it something, "livewallpaper.py". Then ./livewallpaper.py [ your video path]. You might want to check this again for python formating. Works on Gnome.
ETA: There was a formatting error @ mpv_options + ' >/dev/null 2>&1 . Fixed.
This looks similar, with a good explanation of what's going on, note the "China.Z": http://blog.malwaremustdie.org/2015/01/mmd-0030-2015-new-elf-malware-on.html
There was an update to Gnome Shell just a few days ago. I recently, a couple weeks ago, did a fresh install of Arch on one machine , and also updated other Arch installs along with an Ubuntu 17.10 to 18.04 with Gnome upgrade on another machine. And had what pretty much what you described happen. I even reinstalled Ubuntu. With no change. I then renamed my extensions folder in~/.config/gnome-shell and then relogged into Arch Gnome Shell. The problem was gone. So then it was somewhat methodically re-enabling extensions until I could narrow down if it was an extension and which one. So, this is what fixed it for me, after some research, you need to grab the .zip from the Workspaces to Dock extension developer's github page and use the extension folder in the archive (it will have the @extension in the name, in place of whatever version you're using now. According to the extension developer he's awaiting approval to upload the fixed version to the Gnome Extension site. This worked on all my Gnome Shell installs both Arch, Arch-based, and Ubuntu. If this helps,fixes, let me know. If there's still an issue, I have some links to recent problems with libput on Arch, too. HTH
ETA: Also had i3 and XFCE4 installed on these machines and under those there was no problem.