Arch Linux Forums

Discussion forums for Arch Linux, a simple, lightweight linux distribution.

You are not logged in.

#51 2009-02-22 20:35:37

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 620

Re: Post your .screenrc with screenshots!

Zetsumei wrote:

Where do you place backticks and where do they show up in a screen session?

leo2501 wrote:

Playing with backtick's smile

Code:

backtick 1 60 60 $HOME/bin/get_uptime
backtick 2 60 60 $HOME/bin/get_cputemp Core0
backtick 3 60 60 $HOME/bin/get_freemem
backtick 4 60 60 $HOME/bin/get_freeswap
backtick 5 60 60 $HOME/bin/get_volume PCM
backtick 6 60 60 $HOME/bin/get_gmail
backtick 7 60 60 $HOME/bin/get_updates

hardstatus string "%{.kc}%-w%{.kw}%n*%t%{-}%+w %= | %1` | %2`C | %3`/%4` | %5`% | %6`/%7` | %c %d/%m/%Y"

they are placed in the hardstatus string line, between the "|" i mean the numbers:

%1` is backtick 1 60 60 $HOME/bin/get_uptime
%2` is backtick 2 60 60 $HOME/bin/get_cputemp Core0
...

and they show in the bottom of your screen session, in the hardstatus line

Last edited by leo2501 (2009-02-22 20:37:28)


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

 

#52 2009-03-09 18:00:11

ste
Member
Registered: 2006-05-23
Posts: 14

Re: Post your .screenrc with screenshots!

Ankka wrote:

ste... I'm missing your config file.

I really really have an extremely hard time understanding the status line config in screen, somehow the way the colors act just doesn't make any sense and doesn't resemble any other config I've used, and I never get the colors I'm looking for. Yours happen to be somewhat like my goal. smile

sorendition 00 07
hardstatus on
hardstatus alwayslastline "%-w %{+r} %n %t %{-} %+w %4`"

I'm not sure how it works either, but I've had this config for years and years, over a bunch of different OS's.

Offline

 

#53 2009-03-13 05:19:24

lividity
Member
Registered: 2009-03-11
Posts: 2

Re: Post your .screenrc with screenshots!

http://s5.tinypic.com/ofxbnp.jpg
http://s5.tinypic.com/k18dps.jpg



I use 2 different screen configs. 1 for the server 1 for home. For home use I wanted screen split in 4. Here's how.

Create an area to hold the source

Code:

cd ~/
mkdir screen
cd screen

Get the latest source

Code:

wget http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz

Extract the source

Code:

tar xvf screen-4.0.3.tar.gz

Download extract and apply vertical split patch

Code:

cd screen-4.0.3/
wget http://vsp4sdl.yuggoth.org/wrp_vertical_split_0.3_4.0.2.diff.bz2
bunzip2 wrp_vertical_split_0.3_4.0.2.diff.bz2
patch -p1 < wrp_vertical_split_0.3_4.0.2.diff

Build it

Code:

./configure && make

Install screen

Code:

sudo mv screen /usr/local/bin/

Use my .screenrc if you would like smile The window splitting is @ the bottom smile

Code:

nano ~/.screenrc

##########.screenrc##########
activity "%c activity -> %n%f %t"
autodetach on
altscreen on
bell "%c bell -> %n%f %t^G"
defflow auto
defscrollback 10000
defutf8 on
msgwait 2                 # 1 second messages
startup_message off        # disable the startup splash message
shell -bash
vbell_msg "[[[ ding ]]]"
vbell off
nethack on
zombie cr

# remove some key bindings
bind k
bind W
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
# make them safer
bind 'K' kill
bind 'W' windowlist
bind 'V' vert_split

# F8 to turn the status bar off
#bindkey -k k8 hardstatus alwayslastline
# F9 to turn the status bar on
#bindkey -k k9 hardstatus alwaysignore
# F5 and F6 to move one screen forward or backward
bindkey -k k5 prev
bindkey -k k6 next


split
screen -t rtorrent rtorrent -o http_capath=/etc/ssl/certs
vert_split
focus up
screen -t irssi irssi
focus up
screen -t bash bash
focus down
vert_split
screen -t bash bash
focus down
select irssi

# If you need more terms then uncomment however many you need wink
#screen -t bash bash
#screen -t bash7 bash
#screen -t bash8 bash
#screen -t bash9 bash

########End of script########

Last edited by lividity (2009-03-13 06:53:49)

Offline

 

#54 2009-03-13 10:55:25

djnm
Member
From: USA
Registered: 2008-12-21
Posts: 78

Re: Post your .screenrc with screenshots!

@ lividity
The screen-git package in aur includes the vertical split patch. big_smile


br0tat0chip in #archlinux and on freenode

Offline

 

#55 2009-04-07 14:25:01

kaspar
Member
Registered: 2009-04-05
Posts: 1

Re: Post your .screenrc with screenshots!

http://www.kasparnissen.dk/screen_screenshot.png


Thanks for all the tips! Here is what I glow together from it


Code:

startup_message off
                                                     
caption always "%{= Wk}%-w%{= Bw}%n %t%{-}%+w %-="
vbell off
term screen-256color
screen -t log  0 sudo tail -f /var/log/everything.log
screen -t Bash1 1
screen -t Bash2 2
screen -t Ncmpc++ 3 ncmpcpp
select 1
altscreen on

bindkey "^[[1;5D" prev  # change window with ctrl-left
bindkey "^[[1;5C" next  # change window with ctrl-right

Used screen-git from AUR for the vertical splitting.

Been with Arch (happily off course) for about half a year and now comes my first post roll

Offline

 

#56 2009-04-07 16:20:30

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: Post your .screenrc with screenshots!

http://omploader.org/tMWhzdw

Code:

escape ^aa 
startup_message off
vbell on
msgwait 2
defscrollback 5000
defutf8 on
shell bash
shelltitle "$ |terminal"

hardstatus alwayslastline "%{= w}%-w%{= Bk} %n %t %{-}%+w %-="

screen -t "irssi"          0 bash
screen -t "terminal"    1 bash

MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

 

#57 2009-04-08 04:17:16

Barrucadu
Member
From: Hull, England
Registered: 2008-03-30
Posts: 830
Website

Re: Post your .screenrc with screenshots!

Right, I am going to have to learn how to use screen now tongue

Last edited by Barrucadu (2009-04-08 04:42:32)

Online

 

#58 2009-04-10 02:59:58

1LordAnubis
Member
Registered: 2008-10-10
Posts: 144
Website

Re: Post your .screenrc with screenshots!

http://lordanubis.netau.net/files/boxshots/screen/snapshot72thumb.png

Code:

startup_message off
activity "%c activity -> %n%f %t"
caption always "%{= Wk}%-w%{= Bw}%n %t%{-}%+w %-="
vbell off
term screen-256color


bind 'K' kill
bind 'W' windowlist
bind 'V' split -v

# F8 to turn the status bar off
#bindkey -k k8 hardstatus alwayslastline
# F9 to turn the status bar on
#bindkey -k k9 hardstatus alwaysignore
# F5 and F6 to move one screen forward or backward
#bind F7 to change focus
bindkey -k k7 focus up
bindkey -k k5 prev
bindkey -k k6 next
screen -t irssi   1 irssi
split -v
focus down
screen -t htop  2 htop
select htop
split
focus down
screen -t Bash1  3 bash
select bash
focus down
select irssi
altscreen on

Any society that would give up a little liberty to gain a little security will deserve neither and lose both.
-Benjamin Franklin
The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.
-George Bernard Shaw

Offline

 

#59 2009-04-11 18:33:32

Barrucadu
Member
From: Hull, England
Registered: 2008-03-30
Posts: 830
Website

Re: Post your .screenrc with screenshots!

http://misc.barrucadu.co.uk/screen.png

Code:

#-*-conf-*-

startup_message off
autodetach      on
vbell           on

setenv LC_CTYPE en_GB.UTF-8
defutf8 on

termcapinfo rxvt-unicode ti@:te@
terminfo    rxvt-unicode ti@:te@:
term        screen-256color

bind V split -v

hardstatus on
hardstatus alwayslastline '%{= M} %H%{= G} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '

My weechat / ncmpcpp / rtorrent configs are here: http://www.barrucadu.co.uk/dotfiles.php

Online

 

#60 2009-04-12 04:37:09

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 320
Website

Re: Post your .screenrc with screenshots!

Barrucadu wrote:

My weechat / ncmpcpp / rtorrent configs are here: http://www.barrucadu.co.uk/dotfiles.php

Thnx for your ncmpcpp conf. And love te minimal design of your site.

Offline

 

#61 2009-08-22 15:06:40

esquiso
Member
From: Oporto, Portugal
Registered: 2008-05-21
Posts: 10

Re: Post your .screenrc with screenshots!

Rise, thread, rise!

http://i27.tinypic.com/1zz19nq.png

Code:

# Tab bar

hardstatus off
hardstatus alwayslastline
hardstatus string "%{+b wk} %-w%{+b wk} %n %t %{-}%+w %41=%H @ %l %-= %= %D,%c:%s "

# Escape key

escape \\a

# To clear the screen after closing some programs

altscreen on

# Programs opening by default

screen -t "BASH" 1 
screen -t "MPD" 2 ncmpc
screen -t "IRC" 3 irssi
screen -t "HTOP" 4 htop

# Keys

bindkey -k k; quit

# COLORS! and some useful terminfo

term screen-256color
terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'

# Do not show startup message

startup_message off

Last edited by esquiso (2009-08-22 15:07:42)

Offline

 

#62 2009-08-24 16:53:46

benoror
Member
Registered: 2009-07-19
Posts: 18

Re: Post your .screenrc with screenshots!

Offline

 

#63 2009-08-24 17:10:28

benoror
Member
Registered: 2009-07-19
Posts: 18

Re: Post your .screenrc with screenshots!

Offline

 

#64 2009-08-24 21:08:30

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

Re: Post your .screenrc with screenshots!

It seems ompload broke the thumbnail so you'll have to be lazy and click the link. http://omploader.org/vMjdtZQ

The information about updates and mail only shows up when there is an update or a new message.  The --INSERT-- text is only shown when the active screen is zsh and zsh is in insert mode.  If zsh is active and it's in normal mode, the text is --NORMAL--.  That trick was found somewhere on the internet and ties tightly in with my .zshrc.

The .screenrc can be found on my site below (or to the left).

Last edited by rson451 (2009-08-24 21:10:14)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net - my configs and other random stuff.

Offline

 

#65 2009-10-04 13:30:44

Lich
Member
Registered: 2009-09-13
Posts: 393

Re: Post your .screenrc with screenshots!

Code:

hardstatus alwayslastline '%{= dd}%{= Wr} %D %d %M %c > %{= Ww}%-w%{= Wk}%n %t%{= Ww}%+w %{= dd} %='

http://omploader.org/tMmhhdw


Bare Window Manager
My configs
Archlinux x64 | ratpoison

Online

 

#66 2009-10-08 12:24:49

skyshock21
Member
Registered: 2009-10-08
Posts: 1

Re: Post your .screenrc with screenshots!

This opens 6 screen windows, the 1st two are web and rtorrent, the next 4 open various directories I like to switch between quickly, and then the final statement (select 2) puts the focus on the window with the home directory:

Code:

screen -t Web elinks
screen -t rTorrent rtorrent
screen -t Home
chdir /media/Storage
screen -t Storage
chdir $HOME/python
screen -t Python
chdir $HOME/c
screen -t C
select 2

Offline

 

#67 2009-10-08 12:39:07

Lich
Member
Registered: 2009-09-13
Posts: 393

Re: Post your .screenrc with screenshots!

skyshock21 wrote:

This opens 6 screen windows, the 1st two are web and rtorrent, the next 4 open various directories I like to switch between quickly, and then the final statement (select 2) puts the focus on the window with the home directory:

Code:

screen -t Web elinks
screen -t rTorrent rtorrent
screen -t Home
chdir /media/Storage
screen -t Storage
chdir $HOME/python
screen -t Python
chdir $HOME/c
screen -t C
select 2

well this is in theory a screenrc, but this thread is more oriented towards the hardstatus/caption setup, rather than generic stuff that anyone can learn with `man screen`


Bare Window Manager
My configs
Archlinux x64 | ratpoison

Online

 

#68 2009-10-08 13:01:25

steve___
Member
Registered: 2008-02-24
Posts: 110
Website

Re: Post your .screenrc with screenshots!

I disagree  :-|  I like seeing how anyone sets up their screenrc.  I find it's a fun way to learn.

Offline

 

#69 2009-10-08 13:36:01

Lich
Member
Registered: 2009-09-13
Posts: 393

Re: Post your .screenrc with screenshots!

steve___ wrote:

I disagree  :-|  I like seeing how anyone sets up their screenrc.  I find it's a fun way to learn.

do a `man screen`, way more educational


Bare Window Manager
My configs
Archlinux x64 | ratpoison

Online

 

#70 2009-11-20 06:38:42

dziq
Member
From: Olsztyn, Poland
Registered: 2008-03-26
Posts: 53
Website

Re: Post your .screenrc with screenshots!

I have problem with UTF-8 characters in hardstatus. I try to set it up for corrert display, but I can't
Here is my config

Code:

term screen-256color
terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
setenv LC_CTYPE pl_PL.UTF-8
defutf8 on
startup_message off
activity "%c activity -> %n%f %t"
autodetach on
altscreen on
bell "%c bell -> %n%f %t^G"
defflow auto
defscrollback 10000

# F8 to turn the status bar off
bindkey -k k8 hardstatus alwayslastline
# F9 to turn the status bar on 
bindkey -k k9 hardstatus alwaysignore
# F1 and F2 to move one screen forward or backward
bindkey -k k1 prev
bindkey -k k2 next
vbell_msg "[[[ ding ]]]"
vbell off
nethack on
backtick 1 60 60 /home/dziq/bin/screen_agenda
#hardstatus alwayslastline "%{.kK}[%1`@%H]"
hardstatus alwayslastline '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W} [%1`]'


#hardstatus alwayslastline
#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %Y-%m-%d %{W}%c %{g}]'
screen -t zsh 1 zsh
#screen -t rtorrent   1 rtorrent
#screen -t ekg2      1 ekg2
#screen -t mail      1 mutt
#screen -t imap    2 offlineimap
#screen -t music     4 ncmpcpp

Offline

 

Board footer

Powered by FluxBB