From 6f8a3bd08d3167658b62c78b3252cd4c28a780ac Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 21 Oct 2001 17:27:43 +0000 Subject: [PATCH] added prompt, barstart and barend to theme. Removed mail stuff from config, it's only a script now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1884 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- default.theme | 9 +++++++++ irssi.conf | 26 ++++++++++++++++++++------ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/default.theme b/default.theme index 11ad2f2f..310bf6f5 100644 --- a/default.theme +++ b/default.theme @@ -255,8 +255,17 @@ abstracts = { # background for topicbar (same default) #sb_topic_bg = "%4"; + # text at the beginning of statusbars. sb-item already puts + # space there,so we don't use anything by default. + sbstart = ""; + # text at the end of statusbars. Use space so that it's never + # used for anything. + sbend = " "; + sb = " %c[%n$0-%c]%n"; sbmode = "(%c+%n$0-)"; sbaway = " (%GzZzZ%n)"; sbservertag = ":$0 (change with ^X)"; + + prompt = "[$0-] "; }; diff --git a/irssi.conf b/irssi.conf index c873071c..5b6c69e0 100644 --- a/irssi.conf +++ b/irssi.conf @@ -74,6 +74,10 @@ statusbar = { # but {sb $T} is printed only if $T isn't empty. items = { + # start/end text in statusbars + barstart = "{sbstart}"; + barend = "{sbend}"; + # treated "normally", you could change the time/user name to whatever time = "{sb $Z}"; user = "{sb $cumode$N{sbmode $usermode}{sbaway $A}}"; @@ -84,11 +88,10 @@ statusbar = { # window_empty is printed with empty windows window = "{sb $winref:$T{sbmode $M}}"; window_empty = "{sb $winref{sbservertag $tag}}"; - prompt = "[$[.15]T] "; - prompt_empty = "[$winname] "; + prompt = "{prompt $[.15]T}"; + prompt_empty = "{prompt $winname}"; # all of these treated specially, they're only displayed when needed - #mail = "{sb Mail: $0}"; lag = "{sb Lag: $0}"; act = "{sb Act: $0-}"; more = "-- more --"; @@ -112,14 +115,15 @@ statusbar = { # list of items in statusbar in the display order items = { + barstart = { priority = "100"; }; time = { }; user = { }; window = { }; window_empty = { }; - mail = { }; lag = { priority = "-1"; }; act = { priority = "10"; }; more = { priority = "-1"; alignment = "right"; }; + barend = { priority = "100"; alignment = "right"; }; }; }; @@ -129,7 +133,13 @@ statusbar = { placement = "bottom"; position = "1"; visible = "inactive"; - items = { window = { }; window_empty = { }; more = { }; }; + items = { + barstart = { priority = "100"; }; + window = { }; + window_empty = { }; + more = { }; + barend = { priority = "100"; alignment = "right"; }; + }; }; # (annoying) infobar requesting new users to visit irssi.org and read @@ -164,7 +174,11 @@ statusbar = { placement = "top"; position = "1"; visible = "always"; - items = { topic = { }; }; + items = { + barstart = { priority = "100"; }; + topic = { }; + barend = { priority = "100"; alignment = "right"; }; + }; }; }; };