2025年4月15日 星期二 乙巳(蛇)年 正月十六 设为首页 加入收藏
rss
您当前的位置:首页 > 计算机 > 编程开发 > Lua

使用 feh 快速设置桌面壁纸

时间:12-14来源:作者:点击数:3

在 awesomeWM 上设置壁纸是一件很麻烦的事情,我需要修改 rc.lua 中的代码,然后再 restart awesomeWM 才能设置新的壁纸。

不过最近发现原来通过 feh 就能够快速设置壁纸了。方法为

  • feh --bg-scale /path/to/wallpaper.png

通过 feh --help 查看 feh 帮助就会发现它还支持不同的布局方式:

bg-center FILE Set FILE as centered desktop background
bg-fill FILE Like --bg-scale, but preserves aspect ratio by zooming the image until it fits. May cut off corners
bg-max FILE Like --bg-fill, but scale the image to the maximum size that fits the screen with black borders on one side
bg-scale FILE Set FILE as scaled desktop background. This will fill the whole background, but the images' aspect ratio may not be preserved
bg-tile FILE Set FILE as tiled desktop background
方便获取更多学习、工作、生活信息请关注本站微信公众号城东书院 微信服务号城东书院 微信订阅号
推荐内容
相关内容
栏目更新
栏目热门
本栏推荐