-
-
Notifications
You must be signed in to change notification settings - Fork 32
Getting Started
- How to use
wal
- Applying the theme to new terminals
- Making the colorscheme persist on reboot
- Numbers, garbage and junk is appearing in my terminal
- 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"] [-c] [-i "/path/to/img.jpg"]
[-f "/path/to/colorscheme/file"] [-n] [-o "script_name"] [-q] [-r]
[-t] [-v]
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*
-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 Reload current colorscheme.
-t Fix artifacts in VTE Terminals. (Termite,
xfce4-terminal)
-v Print "wal" version.
wal
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'
# & # Run the process in the background.
# ( ) # Hide shell job control messages.
(wal -r &)
# If the command above doesn't work,
# try this alternative.
setsid wal -r
On 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.
wal -i "$(< "${HOME}/.cache/wal/wal")"
This issue occurs in all VTE based terminals (xfce4-terminal
, gnome-terminal
, termite
etc) and is caused by these terminals not supporting one of the color changing sequences. You can easily fix the issue by adding -t
to all of your wal
commands.
The -t
command disables the problem sequence and therefore stops the junk from being printed.