Linux command
wal 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Generate colors from image
wal -i [image.png]
Light theme
wal -i [image.png] -l
Skip wallpaper setting
wal -i [image.png] -n
Use theme
wal --theme [theme-name]
List themes
wal --theme
Restore colors
wal -R
说明
wal (pywal) generates color schemes by extracting dominant colors from wallpaper images and applies them to the terminal emulator, shell, and other applications. It creates a cohesive visual theme across the desktop environment based on a single source image. The extracted color palette is applied to terminal colors in real time and can be used to generate configuration files for other programs through a template system. This allows applications like i3, polybar, rofi, and many others to automatically adopt the same color scheme. Generated themes are cached for quick switching, and previous color schemes can be restored on login. Both light and dark color variants are supported, and the wallpaper-setting step can be skipped when only the colors are needed.
参数
- -i _IMAGE_
- Input image or directory of images.
- -l
- Generate light colorscheme.
- -n
- Skip setting the wallpaper.
- --theme _NAME_
- Use a theme file (use without argument to list themes).
- -R
- Restore previous colorscheme.
- -c
- Delete all cached colorschemes.
- -a _ALPHA_
- Set terminal background transparency (URxvt only).
- -b _COLOR_
- Custom background color to use.
- --backend _BACKEND_
- Color backend to use (use without argument to list backends).
- --saturate _0.0-1.0_
- Set color saturation level.
- -o _SCRIPT_
- External script to run after wal finishes.
- -q
- Quiet mode, suppress output.
- -s
- Skip changing colors in terminals.
- -t
- Skip changing colors in TTY.
FAQ
What is the wal command used for?
wal (pywal) generates color schemes by extracting dominant colors from wallpaper images and applies them to the terminal emulator, shell, and other applications. It creates a cohesive visual theme across the desktop environment based on a single source image. The extracted color palette is applied to terminal colors in real time and can be used to generate configuration files for other programs through a template system. This allows applications like i3, polybar, rofi, and many others to automatically adopt the same color scheme. Generated themes are cached for quick switching, and previous color schemes can be restored on login. Both light and dark color variants are supported, and the wallpaper-setting step can be skipped when only the colors are needed.
How do I run a basic wal example?
Run `wal -i [image.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i _IMAGE_ do in wal?
Input image or directory of images.