Skip to content
bud edited this page Aug 14, 2020 · 6 revisions

i3var - Set or get a i3 variable

SYNOPSIS

i3var set VARNAME [VALUE]
i3var get VARNAME
i3var --help|-h
i3var --version|-v

DESCRIPTION

i3var is used to get or set a "variable" that is bound to the current i3wm session. The variable is actually the mark of a "ghost window" on the scratch pad.

set [VALUE]
If VARNAME doesn't exist, a new window and mark will be created. If VARNAME exists it's value will be replaced with VALUE.
If VALUE is not defined, VARNAME will get unset.

get
if VARNAME exists, its value will be returned window.

OPTIONS

--help|-h
Show help and exit.

--version|-v
Show version and exit.

DEPENDENCIES

bash gawk sed i3 i3gw

Clone this wiki locally