← 返回命令列表

Linux command

hsetroot 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Set solid color background

hsetroot -solid "[#1a1b26]"

Set wallpaper (fill)

hsetroot -fill [wallpaper.jpg]

Set wallpaper (center)

hsetroot -center [wallpaper.png]

Set wallpaper (tile)

hsetroot -tile [pattern.png]

Set gradient

hsetroot -add "[#1a1b26]" -add "[#24283b]" -gradient [0]

Set with cover mode

hsetroot -cover [wallpaper.jpg]

说明

hsetroot sets the X11 root window background. It's commonly used with minimal window managers that don't include wallpaper functionality, like dwm, bspwm, or i3. The tool supports solid colors, images with various scaling modes, and gradients. It's lightweight and scriptable.

参数

-solid _color_
Solid color background.
-fill _image_
Scale to fill screen.
-center _image_
Center image.
-tile _image_
Tile image.
-cover _image_
Cover screen, preserve aspect.
-add _color_
Add color to gradient.
-gradient _angle_
Create gradient at angle.
-screens _n_
Apply to n screens.
-brightness _value_
Adjust brightness.
-contrast _value_
Adjust contrast.

FAQ

What is the hsetroot command used for?

hsetroot sets the X11 root window background. It's commonly used with minimal window managers that don't include wallpaper functionality, like dwm, bspwm, or i3. The tool supports solid colors, images with various scaling modes, and gradients. It's lightweight and scriptable.

How do I run a basic hsetroot example?

Run `hsetroot -solid "[#1a1b26]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -solid _color_ do in hsetroot?

Solid color background.