[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/slackware/ - Slackware Linux

#slackware@irc.rizon.net
Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 77e008907df0ddf⋯.png (41.72 KB,276x270,46:45,3be2cf68.png)

 No.7

This is the .screenrc I currently use for GNU Screen.

With it you can change windows by using the Function Keys on your keyboard (F1, F2 and so on).

To use it, just place the file in your $HOME and you're set. If you already have a $HOME/.screenrc, make a backup first just in case.

The screenshot differs from the .screenrc by the way.

#
# This is an example for the global screenrc file.
# You may want to install this file as /etc/screenrc.
# Check config.h for the exact location.
#
# Flaws of termcap and standard settings are done here.
#

#startup_message off

#defflow on # will force screen to process ^S/^Q

deflogin on
#autodetach off

#vbell on
#vbell_msg " Wuff ---- Wuff!! "

# all termcap entries are now duplicated as terminfo entries.
# only difference should be the slightly modified syntax, and check for
# terminfo entries, that are already corected in the database.
#
# G0 we have a SEMI-GRAPHICS-CHARACTER-MODE
# WS this sequence resizes our window.
# cs this sequence changes the scrollregion
# hs@ we have no hardware statusline. screen will only believe that
# there is a hardware status line if hs,ts,fs,ds are all set.
# ts to statusline
# fs from statusline
# ds delete statusline
# al add one line
# AL add multiple lines
# dl delete one line
# DL delete multiple lines
# ic insert one char (space)
# IC insert multiple chars
# nx terminal uses xon/xoff

termcap facit|vt100|xterm LP:G0
terminfo facit|vt100|xterm LP:G0

#the vt100 description does not mention "dl". *sigh*
termcap vt100 dl=5\E[M
terminfo vt100 dl=5\E[M

#facit's "al" / "dl" are buggy if the current / last line
#contain attributes...
termcap facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%d;%dr:ic@
terminfo facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%p1%d;%p2%dr:ic@

#make sun termcap/info better
termcap sun 'up=^K:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:IC=\E[%d@:WS=1000\E[8;%d;%dt'
terminfo sun 'up=^K:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC:IC=\E[%p1%d@:WS=\E[8;%p1%d;%p2%dt$<1000>'

#xterm understands both im/ic and doesn't have a status line.
#Note: Do not specify im and ic in the real termcap/info file as
#some programs (e.g. vi) will (no,no, may (jw)) not work anymore.
termcap xterm|fptwist hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
terminfo xterm|fptwist hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l

# Long time I had this in my private screenrc file. But many people
# seem to want it (jw):
# we do not want the width to change to 80 characters on startup:
# on suns, /etc/termcap has :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:
termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'

#
# Do not use xterms alternate window buffer.
# This one would not add lines to the scrollback buffer.
#termcap xterm|xterms|xs ti=\E7\E[?47l
#terminfo xterm|xterms|xs ti=\E7\E[?47l

#make hp700 termcap/info better
termcap hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
terminfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'

#wyse-75-42 must have defflow control (xo = "terminal uses xon/xoff")
#(nowadays: nx = padding doesn't work, have to use xon/off)
#essential to have it here, as this is a slow terminal.
termcap wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
terminfo wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h

#remove some stupid / dangerous key bindings
bind ^k
#bind L
bind ^\
#make them better
bind \\ quit
bind K kill
bind I login on
bind O login off
bind } history

# Various (un)used settings:
termcapinfo xterm*|rxvt* 'ti@:te@'
#term xterm-256color
#term linux
#export TERM=xterm

# This is how one can set a reattach password:
# C-a :password (this means ctrl+a, :password; you'll be prompted twice for the password) then paste the encrypted password below, uncomment and save.
#password KCv2pnkjw79i6

# Disable the visible bell (screen flashing):
vbell off

# Detach when screen hangs up:
autodetach on

# Don't display the copyright page:
startup_message off

# Set the scrollback buffer to 4096 lines:
defscrollback 4096

# Configure terminfo, termcap and allow bold colours, for a nice 256 color terminal:
attrcolor b ".I"

# Configure screen to set colours. AB = background. AF=foreground:
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'

# Erase the background with current bg colour:
defbce "on"

# Do not remove a window once its process terminates (k/kill; r/restore). The window is removed if the process exits normally ('0'):
zombie kr onerror

# Unset the display variable so programs that require the DISPLAY variable start faster, since we are in a terminal. X programs will not run. If this is set, xset/xrandr/etc will not work:
#unsetenv DISPLAY

# Configure the hardstatusline:
#hardstatus alwayslastline '[%{k}compass%{d}] ;� %l %d/%m %c %-w%{= KW}%n%f* %t%{-}%+w'
#hardstatus alwayslastline '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W} %c %{g}]'
#hardstatus alwayslastline '%{= G}[ %{G}%H %{g}][%= %{= w}%?%-Lw%?%{= R}%n*%f %t%?%{= R}(%u)%?%{= w}%+Lw%?%= %{= g}][ %{y}Load: %l %{g}][%{B}%Y-%m-%d %{W}%c:%s %{g}]'
#hardstatus alwayslastline '[%{k}compass%{d}] ;� %d/%m %c %-w%{= KW}%n* %t%{-}%+w'
#hardstatus alwayslastline '[%H] ;� %d/%m/%Y%C%A %l %-w%{= kw}%n* %t%{-}%+w'
#hardstatus alwayslastline '[%H] ;� %d/%m/%Y%C%A %D %l %-w%{= kw}%n* %t%{-}%+w'
#hardstatus alwayslastline '%H %{wb} %c:%s | %d.%m.%Y %{wr} Load: %l %{wk} %w'
#hardstatus alwayslastline '[%H] ;� %d/%m/%Y %C%A %D %-w%{= kw}%n* %t%{-}%+w'
hardstatus alwayslastline '[%H] %d/%m/%Y %C%A %D %-w%{= kw}%n* %t%{-}%+w'

# Configure the names for each window:
screen -t Star2 12
screen -t Star1 11
screen -t Term3 10
screen -t Term2 9
screen -t Term1 8
#screen -t ss 7 sh -c 'watch -n 5 '\''/usr/sbin/ss -tapn | grep -e firefox -e qbittorrent -e palemoon | sort -h'\''; exec bash -i'
screen -t ss 7 sh -c 'watch -n 5 '\''/usr/sbin/ss -utapn | sort -h'\''; exec bash -i'
screen -t htop 6 sh -c 'htop -u net -d 50; exec bash -i'
screen -t alsamixer 5 sh -c 'export TERM=linux; alsamixer -c 1; exec bash -i'
screen -t music 4 sh -c 'cd /home/net/music/; exec bash -i'
screen -t irc2 3
screen -t irc1 2
screen -t links 1 sh -c 'links '\''http://slackware.mirrors.tds.net/pub/slackware/slackware/ChangeLog.txt'\''; exec bash -i'

# Configure the Function (F#) keys to switch between windows:
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 k; select 10
bindkey -k F1 select 11
bindkey -k F2 select 12

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
Post last edited at

 No.36

Hello this is my .screenrc with things I put there so far. I run screen with screen -e '\`\`' so that control character is ` and lots of binded keys are near the ` key. This is the rc:

#bind tab focus

bind ^[ other

bind a split -v

bind s split

bind r eval "source $HOME/.screen_start" "echo '.screen_start reloaded!'"

bind ^r eval "source $HOME/.screen_start" "echo '.screen_start reloaded!'"

bind . next

bind , prev

bind x windowlist -m

bind ^a meta

#bind ^z stuff "screen bash^M"

#bind z stuff "screen bash^M"

bind ^z screen #/home/space/bin/cdir

bind z screen #/home/space/bin/cdir

bind ^c kill

bind c kill

bind q copy

bind w paste .

bind e only

bind d remove

bind 1 prev

bind 2 next

bind f fit

bind t title

bind T time

bind ' ' #disable '^A '

bind ^H bind ^?

bind ^?

bind i ignorecase

#^H ^P p ^?'

#escape ^Zz

#bind \026 meta

#termcapinfo screen.linux 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'

#termcapinfo linux 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'

bind p detach

ignorecase on

mousetrack on

compacthist on

#bind p eval "chdir "$(echo "$PWD)""

#bind p screen -X eval "chdir $PWD"

#bind p stuff "screen bash^M"

[/code]

i left commented things there because they might be useful. this is also on this link https://hastebin.com/domuqulohe.pl

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]