-
Notifications
You must be signed in to change notification settings - Fork 351
Getting Started
- How to use
wal - Applying the theme to new terminals
- Making the colorscheme persist on reboot
- Using a custom wallpaper setter
- Further Reading: --> Customization
Run wal and point it to either a directory (wal -i "path/to/dir") or an image (wal -i "/path/to/img.jpg") and that's all. wal will change your wallpaper for you and also set your terminal colors.
usage: wal [-h] [-a "alpha"] [-b background] [-c] [-i "/path/to/img.jpg"]
[-f "/path/to/colorscheme/file"] [-n] [-o "script_name"] [-q] [-r]
[-R] [-s] [-t] [-v] [-e]
wal - Generate colorschemes on the fly
optional arguments:
-h, --help show this help message and exit
-a "alpha" Set terminal background transparency. *Only works in
URxvt*
-b background Custom background color to use.
-c Delete all cached colorschemes.
-i "/path/to/img.jpg"
Which image or directory to use.
-f "/path/to/colorscheme/file"
Which colorscheme file to use.
-n Skip setting the wallpaper.
-o "script_name" External script to run after "wal".
-q Quiet mode, don't print anything and don't display
notifications.
-r Deprecated: Use (cat ~/.cache/wal/sequences &)
instead.
-R Restore previous colorscheme.
-s Skip changing colors in terminals.
-t Deprecated: Does nothing and is no longer needed.
-v Print "wal" version.
-e Skip reloading gtk/xrdb/i3/sway/polybarwal only applies the new colors to the currently open terminals. Any new terminal windows you open won't use the new theme unless you add a single line to your shell's start up file.
Add this line to your shell startup file. (.bashrc, .zshrc, .mkshrc etc.)
# Import colorscheme from 'wal' asynchronously
# & # Run the process in the background.
# ( ) # Hide shell job control messages.
(cat ~/.cache/wal/sequences &)
# Alternative (blocks terminal for 0-3ms)
cat ~/.cache/wal/sequences
# To add support for TTYs this line can be optionally added.
source ~/.cache/wal/colors-tty.shOn reboot your new colorscheme won't be set or in use. To fix this you have to add a line to your .xinitrc or whatever file starts programs on your system. This wal command will set your wallpaper to the wallpaper that was set last boot and also apply the colorscheme again.
Without this you'll be themeless until you run wal again.
# Add this to your .xinitrc or whatever file starts programs on startup.
# -R restores the last colorscheme that was in use.
wal -Rwal will detect which wallpaper setter you have installed and use it with the fill mode to set the wallpaper. If you'd like to override this and use either your own setter, a different mode or some different commandline flags you can do the following:
# -n tells `wal` to skip setting the wallpaper.
wal -i img.jpg -n
# Using feh to tile the wallpaper now.
# We grab the wallpaper location from wal's cache so
# that this works even when a directory is passed.
feh --bg-tile "$(< "${HOME}/.cache/wal/wal")"
# You can create a function for this in your shellrc (.bashrc, .zshrc).
wal-tile() {
wal -n -i "$@"
feh --bg-tile "$(< "${HOME}/.cache/wal/wal")"
}
# Usage:
wal-tile "~/Pictures/wall.jpg"
wal-tile "~/Pictures/tiles"