4

使用feh快速设置桌面壁纸

 3 years ago
source link: https://www.lujun9972.win/blog/2018/04/03/%E4%BD%BF%E7%94%A8feh%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%A1%8C%E9%9D%A2%E5%A3%81%E7%BA%B8/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用feh快速设置桌面壁纸

在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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK