使用数学从reddit中选择墙纸
imgurt的Python项目详细描述
imgurt是一个壁纸下载程序,它对壁纸进行评分,并根据分辨率、纵横比和浏览次数选择最佳的壁纸。它会记住以前选择的墙纸,这样您就不会看到同一张图片两次。
安装systemd单元以每两小时运行一次脚本。
用法
python3 imgurt.py
安装
安装依赖项
pip3 install requests
还可以使用发行版的包管理器安装feh。
安装Systemd用户单元(可选)
- 编辑systemd/imgurt.service指向imgurt.py
- 复制单位文件
# copy service files cp -u systemd/* ~/.config/systemd/user/ # enable and start systemd timer systemctl --user enable imgurt.timer systemctl --user start imgurt.timer # the service can be triggered manually as well systemctl --user start imgurt