You are not logged in.

#1 2005-05-24 22:04:45

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

screen: hardstatus and caption lines

anyone have anything cool for these... here's mine:

caption always "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
hardstatus alwayslastline " [ %H ] %{wb} %c:%s | %d.%m.%Y %{wr} Load: %l %{wb} %w "

and later on when I'm bored, I'm going to add some backtick stuff so I can get wireless link quality...

I've been meaning to switch the whole -Lw,+Lw thing (because it's complicated) to something more like:
[ %n%f* %t ] %W
which will list the current window always on the left, then all except the current after that...

I'll post screenies when I can...

I'm just in a mood to mess with things like this... so, post away

Offline

#2 2005-05-24 23:54:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: screen: hardstatus and caption lines

.screenrc

hardstatus string "%{+b Rk}(%{-b g}$LOGNAME@%H%{+b R}) (%{-b g}%C %a%{+b R}) %{-b g} %n %t"
hardstatus alwayslastline
vbell on

A bit boring, but I like it.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-05-25 10:43:11

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: screen: hardstatus and caption lines

It would be nice if you explained what was actually on it, . big_smile
thanks:

iphitus

Offline

#4 2005-05-25 19:37:02

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: screen: hardstatus and caption lines

iphitus wrote:

It would be nice if you explained what was actually on it

it's not too hard to understand... "man screen"
%{......} are colors
%H is host
%t is window title
the rest you'd just have to look up...

Offline

#5 2008-06-25 15:44:03

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: screen: hardstatus and caption lines

raise from the dead! here's mine.

# remove all attributes, set colors to default: %{= dd}
# 24h time, protected by absolute marker: %c %06=
# windows before current: %-Lw
# truncation position marker, with '...': %40L>
# push bold, current window, then restore from stack: %{+b}%n*%f %t%{-}
# windows after current: %+Lw
# truncate from previous absolute marker: %<
hardstatus string '%{= dd}%c %06=%-Lw%40L>%{+b}%n*%f%t%{-}%+Lw%<'

what's nice:
- it has a fixed part on the left, with the clock
- it adds '...' clue on side(s) where it has truncated the window list
- it resets colors at the beginnig, so as to have fake transparency too in e.g rxvt

I then modified it a bit with a backtick, a few cosmetic chars, and added some colors (for battery level). too bad we can't put the caption bar on top

Last edited by lloeki (2008-06-25 16:21:11)


To know recursion, you must first know recursion.

Offline

#6 2008-06-25 17:04:49

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: screen: hardstatus and caption lines

backtick 10 1 60 "whoami"
backtick 20 1 300 "arch_update.py"

shelltitle "$ | zsh"

# [user@hostname] updates :: any system updates   [screen 0] [screen 1]...
hardstatus alwayslastline "%{.kK}[%10`@%H] updates :: %20`%=%-w[%n %t]%+w"

presents

84701083nr0.th.png

the first backtick is pretty useless but oh well.

edit: WOW old thread...

Last edited by rson451 (2008-06-25 17:10:31)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#7 2008-06-26 01:11:09

babypuncher
Member
From: .au
Registered: 2007-03-12
Posts: 114
Website

Re: screen: hardstatus and caption lines

hardstatus string '%{= kK}%{w}%H %{K}%= %{= kw}%?%-Lw%?%{B}(%{W}%n*%f %t%?(%u)%?%{B})%{w}%?%+Lw%?%?%= %{K}%{B} %{w}%c%{K}'

screenmp2.png

Offline

Board footer

Powered by FluxBB