Dynamische Fenstertitel in (u)rxvt und xterm

  • strict warning: Non-static method view::load() should not be called statically in /usr/share/nginx/www/drupal/sites/all/modules/views/views.module on line 1113.
  • strict warning: Declaration of views_handler_field::query() should be compatible with views_handler::query($group_by = false) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_field.inc on line 0.
  • strict warning: Declaration of views_handler_field_user::init() should be compatible with views_handler_field::init(&$view, $options) in /usr/share/nginx/www/drupal/sites/all/modules/views/modules/user/views_handler_field_user.inc on line 0.
  • strict warning: Declaration of views_handler_argument::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_argument.inc on line 0.
  • strict warning: Declaration of views_handler_argument::query() should be compatible with views_handler::query($group_by = false) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_argument.inc on line 0.
  • strict warning: Declaration of views_handler_sort::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_sort.inc on line 0.
  • strict warning: Declaration of views_handler_sort::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_sort.inc on line 0.
  • strict warning: Declaration of views_handler_sort::query() should be compatible with views_handler::query($group_by = false) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_sort.inc on line 0.
  • strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_filter.inc on line 0.
  • strict warning: Declaration of views_handler_filter::query() should be compatible with views_handler::query($group_by = false) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_filter.inc on line 0.
  • strict warning: Declaration of views_handler_relationship::query() should be compatible with views_handler::query($group_by = false) in /usr/share/nginx/www/drupal/sites/all/modules/views/handlers/views_handler_relationship.inc on line 0.
  • strict warning: Declaration of views_plugin_query::options_submit() should be compatible with views_plugin::options_submit($form, &$form_state) in /usr/share/nginx/www/drupal/sites/all/modules/views/plugins/views_plugin_query.inc on line 0.
  • strict warning: Declaration of views_plugin_argument_validate::options_submit() should be compatible with views_plugin::options_submit($form, &$form_state) in /usr/share/nginx/www/drupal/sites/all/modules/views/plugins/views_plugin_argument_validate.inc on line 0.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /usr/share/nginx/www/drupal/sites/all/modules/views/plugins/views_plugin_row.inc on line 0.

Seit nun mehr einem Jahr setze ich hauptsächlich wmii als Fenstermanager ein. Unter anderem dadurch kam ich dazu das CLI (Command line interface) sehr oft zu benutzen. Am meisten kommt bei mir die Unicode-Variante von rxvt (urxvt) zum Einsatz. Und eben diesem kann man auch beibringen seinen Fenstertitel dynamisch anzupassen. Dazu muss man in seine ~/.bashrc folgendes Einfügen:

# X Terminal titles
case "$TERM" in
xterm*|rxvt*)
        PROMPT_COMMAND='echo -ne "\033]0;${USER}: ${PWD}\007"'
        ;;
*)
        ;;
esac

Der entscheidende Hinweis kam aus dem ArchLinux-Forum.

Damit ist es deutlich übersichlicher mehrere Terminal-Emulator-Fenster aufzuhaben.

Seit nun mehr einem Jahr setze ich hauptsächlich wmii als Fenstermanager ein. Unter anderem dadurch kam ich dazu das CLI (Command line interface) sehr oft zu benutzen. Am meisten kommt bei mir die Unicode-Variante von rxvt (urxvt) zum Einsatz. Und eben diesem kann man auch beibringen seinen Fenstertitel dynamisch anzupassen. Dazu muss man in seine ~/.bashrc folgendes Einfügen:# X Terminal titlescase "$TERM" inxterm*|rxvt*) PROMPT_COMMAND='echo -ne "\033]0;${USER}: ${PWD}\007"' ;;*) ;;esac

Trackback URL for this post:

https://blog.voodoo-arts.net/trackback/73

Tags for Dynamische Fenstertitel in (u)rxvt und xterm