Remove the terminal option from config.

The welcome message is displayed using xmessage(1), not using your
terminal. Thus, it makes no sense to have this option anymore. Also,
the new lex/yacc parser cannot correctly handle the situation:
normal variables are expanded before parsing the file. As a replacement,
you can use:
  set $terminal /usr/bin/urxvt
This commit is contained in:
Michael Stapelberg 2009-11-13 20:36:59 +01:00
parent aa2e0d7d14
commit d266474f97
4 changed files with 2 additions and 12 deletions

View File

@ -178,10 +178,6 @@ and edit it with a text editor.
=== General configuration === General configuration
terminal::
Specifies the terminal emulator program you prefer. It will be started
by default when you press Mod1+Enter, but you can overwrite this. Refer
to it as +$terminal+ to keep things modular.
font:: font::
Specifies the default font you want i3 to use. Use an X core font Specifies the default font you want i3 to use. Use an X core font
descriptor here, like descriptor here, like

View File

@ -1,11 +1,6 @@
# This configuration uses Mod1 and Mod3. Make sure they are mapped properly using xev(1) # This configuration uses Mod1 and Mod3. Make sure they are mapped properly using xev(1)
# and xmodmap(1). Usually, Mod1 is Alt (Alt_L) and Mod3 is Windows (Super_L) # and xmodmap(1). Usually, Mod1 is Alt (Alt_L) and Mod3 is Windows (Super_L)
# Tell i3 about your preferred terminal. You can refer to this as $terminal
# later. It is recommended to set this option to allow i3 to open a terminal
# containing the introduction on first start.
terminal /usr/bin/urxvt
# ISO 10646 = Unicode # ISO 10646 = Unicode
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1

View File

@ -486,8 +486,8 @@ exec:
terminal: terminal:
TOKTERMINAL WHITESPACE STR TOKTERMINAL WHITESPACE STR
{ {
config.terminal = sstrdup($<string>3); LOG("The terminal option is DEPRECATED and has no effect. "
printf("terminal %s\n", config.terminal); "Please remove it from your configuration file.");
} }
; ;

View File

@ -597,7 +597,6 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
} }
} }
REQUIRED_OPTION(terminal);
REQUIRED_OPTION(font); REQUIRED_OPTION(font);
/* Set an empty name for every workspace which got no name */ /* Set an empty name for every workspace which got no name */