如何在 Linuxmint 上随机更改 GDM 背景图像 [Ubuntu]
我正在阅读这个帖子 ubuntu/linux bash:遍历目录和子目录来处理文件,我想也许它可以稍微扭曲一点
可以设置为:
- 给出一个基本文件夹
- 扫描文件夹+子文件夹
- 收集它找到的所有文件(仅图像)
- 随机选择一个
- 将符号链接写入 /user/share/backgrounds 目录(写入图像本身覆盖现有图像也可能有效)
我的目的是在系统关闭时或按设定的时间间隔执行脚本,以便它将更改gdm 背景图像..
这是基于使用此行手动执行此操作的步骤 sudo ln -s /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow/
提示启动时出现外观对话框,并写入链接。 理想情况下,它将有一个 GUI 可以随意执行此操作,并且有一个“重新启动时自动更改它”的选项,该选项将执行上面描述的过程并将其自身添加到系统启动、重新启动或关闭序列中。
由于没有可用的自动取款机,它可能对某些人来说很方便 =)
感谢您的帮助。
i was reading this thread ubuntu/linux bash: traverse directory and subdirectories to work with files and i thought maybe it can be twisted a little bit
Can this be set to:
- be given a base folder
- scan folder + subfolder
- collect all files it finds (only images)
- pick one randomly
- write a symbolic link to /user/share/backgrounds directory (writing the image itself overwriting existing one may work as well)
what i intend is to execute the script upon system shutdown or at set interval so it will change the gdm background image..
this is based on a step to do it manually with this line
sudo ln -s /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow/
which prompts for the appearance dialog on startup, which writes the link.
Ideally, it would have a GUI to do it at will, and an option to "change it automagically upon restart" which will do the process i described above and add itself to system start, reboot or shutdown sequence.
Since theres no working utility atm for this, it might come handy for some people =)
thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用壁纸。它可以在工作空间中随时间随机更改壁纸。
Use Wallpapoz. It can change wallpapers randomly across workspaces and over time.