NAME
havoc —
minimal Wayland terminal
emulator
SYNOPSIS
havoc |
[-l] [-c
file] [-s
display] [-i
app-id] [program
[argument ...]] |
havoc |
-h |
havoc |
-v |
DESCRIPTION
havoc opens a Wayland terminal and runs
program with any supplied arguments. Without a
program, it runs the shell from the user's account record, then
SHELL, then /bin/sh. The
program setting in the configuration file overrides
that default. An explicit command-line program overrides the configuration
file.
The child process receives
TERM=xterm-256color. If the selected program cannot
be executed, havoc attempts to run
/bin/sh.
OPTIONS
-cfile- Read only the named configuration file. An empty path disables
configuration loading. If the file cannot be opened,
havocreports the error and uses its built-in defaults. -l- Keep the window open after the child process exits.
-sdisplay- Connect to the named Wayland display instead of the display selected by the environment.
-iapp-id- Use app-id as the Wayland application identifier
instead of
havoc. -h- Print usage and exit.
-v- Print the version and exit.
CONFIGURATION
Without -c, the first readable file in
this order is used:
- $XDG_CONFIG_HOME/havoc/havoc.cfg
- $XDG_CONFIG_HOME/havoc.cfg
- $HOME/.config/havoc/havoc.cfg
- $HOME/.config/havoc.cfg
- ./havoc.cfg
The file is divided into named sections. Blank lines and lines
beginning with a number sign are ignored. Assignments have the form
name=value.
child
program- Program to run when none is supplied on the command line.
window
opacity- Background opacity from 0 through 255.
margin- Use
yesto render a margin matching compositor size hints. decorations- Use
yes,no, orautoto select server-side, no, or automatically negotiated decorations.
terminal
rows- Initial row count, from 1 through 1000.
columns- Initial column count, from 1 through 1000.
scrollback- Number of retained scrollback lines.
scroll to bottom on input- Use
yesto leave scrollback and return to the current line when keyboard input arrives.
font
size- Glyph height in pixels, from 6 through 300.
path- Absolute path to a TrueType font. An empty path uses the built-in fallback font.
bind
Each key is an XKB keysym optionally prefixed by
C-, A-, or
S- for Control, Alt, or Shift. Each value is one
of:
copy paste reset hard reset scroll up scroll down scroll up page scroll down page scroll to top scroll to bottom zoom in zoom out
colors
foreground and
background set the default colors.
color0 through color255 set
palette entries. Values are six-digit RGB colors prefixed by a number
sign.
ENVIRONMENT
WAYLAND_DISPLAY- Default Wayland display when
-sis not supplied. XDG_CONFIG_HOME- First user configuration directory.
HOME- Fallback user configuration directory.
SHELL- Fallback shell when the account record does not specify one.
EXIT STATUS
The havoc utility exits 0 on
success, and >0 if an error occurs.
EXAMPLES
Run the account shell with an explicit configuration file:
havoc -c $HOME/.config/havoc/havoc.cfg
Run a command instead of the configured shell:
havoc /bin/tcsh -f
A small configuration file:
[terminal] rows=24 columns=80 scrollback=1000 [bind] C-S-c=copy C-S-v=paste [colors] foreground=#ffffff background=#000000