You are not logged in.

#1 2009-04-28 23:06:12

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

screenrc help

This is my screenrc. Mostly stolen off of the screenrc thread. I have keybindings to navigate using the F# keys. However, since I also use screenrc to start my htop, it conflicts with the keys in htop

╔═[18:55]═[inxs @ arch]
╚═══===═══[~]>> cat .screenrc 
startup_message off

escape "^  "
bindkey "^[Od" prev # change window with ctrl-left
bindkey "^[Oc" next # change window with ctrl-right

# make life easier, f1-f10 selects screens 0-9 -- conflicts with the keys to control hTop
#bindkey -k k1 select 1
#bindkey -k k2 select 2
#bindkey -k k3 select 3
#bindkey -k k4 select 4
#bindkey -k k5 select 5
#bindkey -k k6 select 6
#bindkey -k k7 select 7
#bindkey -k k8 select 8
#bindkey -k k9 select 9
#bindkey -k k0 select 0


screen -t term1        1
screen -t term2        2
screen -t hTop         3 htop
screen -t Music        4 mocp -C /home/inxs/.config/moc/config
screen -t rtorrent     5 rtorrent
screen -t log          6 sudo tail -f /var/log/everything.log
screen -t web          7 links

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}]'
#hardstatus string "%w"
#hardstatus string "%{.kW}%-w%{.W}%n %t%{-}%+w"
#hardstatus string "%{.kW}%-w%{.W}%n %t%{-}%+w %=%c %d/%m/%Y" #black+white+bold
#hardstatus string "%{.kw}%-w%{.w}%n %t%{-}%+w %=%c %d/%m/%Y" #black+white+normal
#hardstatus string "%{.kw}%-w%{.Kw}%n %t%{-}%+w %=%c %d/%m/%Y" #black+grey+normal
#hardstatus string "%{.kc}%-w%{.kc}%n*%t%{-}%+w %=%c %d/%m/%Y" #black+cyan+normal
hardstatus string "%{.kc}%-w%{.kw}%n*%t%{-}%+w %= %2` %3`/%4` %6`/%7` %5`/%9` %c%a %m/%d/%Y" #black+cyan+normal+white selected
#hardstatus string "%{.kc}%-w%{.kw}%n*%t%{-}%+w %= | %1` | %2`C | %3`/%4` | %6`/%7` | %5` | %c %d/%m/%Y" #with dwm status bar
#hardstatus string '%{= kB}%-Lw%{+r}%50> %n%f* %t%{= kB}%+Lw%< %{= kB}%-= %{-}'
#hardstatus alwayslastline '%{bk}[ %{W}%H %{b}][ %{w}%l%{b} ]   %{b}[%{w} %D %d.%m %c:%s%{b} ]'
select 1

#What do the following do?
#sorendition kw
#terminfo rxvt-unicode ti@:te@:
#altscreen on
#msgwait 10
#nonblock on

╔═[18:58]═[inxs @ arch]
╚═══===═══[~]>>

Is there a way to use the Ctrl+# to navigate on screen tabs? Can someone tell me how?

Aslo if someone could explain the sorendition, altscreen, nonblock and msgwait attributes in screenrc, it would be great.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2009-04-28 23:16:32

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: screenrc help

Maybe ^1?

altscreen becomes obvious when you do e.g. man screen and then quit less, then with `altscreen on` the contents disappear (less was invoked in an altscreen) and with `altscreen off` part of the manual stays on screen. It can be useful off but simulated too with -X for less. It is like .Xdefaults option secondaryScreen.

Offline

#3 2009-04-28 23:38:56

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: screenrc help

Procyon wrote:

Maybe ^1?

altscreen becomes obvious when you do e.g. man screen and then quit less, then with `altscreen on` the contents disappear (less was invoked in an altscreen) and with `altscreen off` part of the manual stays on screen. It can be useful off but simulated too with -X for less. It is like .Xdefaults option secondaryScreen.

Added bindkey "^1" to 7 for my  7 tabs. Unfortunately, it doesn't work. Also for some reason, Ctrl + Q doesn't work and I cannot quit rtorrent sad

Last edited by Inxsible (2009-04-28 23:41:56)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2009-05-10 19:42:15

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: screenrc help

Bumping up for some clues.

Anyone?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB