- sudo apt install mcron
- Create a script, say /home/chiao/scripts/dynwall:
#!/bin/bash
sleep 3
IMG=`find /home/chiao/圖片/wallpaper/dawn/*.jpg | shuf -n 1`
gsettings set org.gnome.desktop.background picture-options 'stretched'
/usr/bin/gsettings set org.gnome.desktop.background picture-uri file:///${IMG} - Create /home/chiao/.config/cron/job.vixie
5 * * * * /home/chiao/scripts/dynwall - Create /home/chiao/.config/autostart/mcron.desktop
[Desktop Entry]
Type=Application
Exec=/usr/bin/mcron -d
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[zh_TW]=mcron
Name=mcron
Comment[zh_TW]=
Comment= - Reboot
2022年6月17日 星期五
dynamic wallpaper background
訂閱:
張貼留言 (Atom)
-
cf: https://ubuntuhandbook.org/index.php/2022/01/default-torrent-app-magnet-links-ubuntu/ Set “QBittorrent” as default app for magnet link,...
-
cf: https://stackoverflow.com/questions/54184707/warning-continue-targeting-switch-is-equivalent-to-break-did-you-mean-to-u Error while...
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
沒有留言:
張貼留言