GNU Screen configuration
2018-01-31 15:23
246 查看
# no welcome message
startup_message off
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
# hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m,%d %{W}%0c%{g}]'
# huge scrollback buffer
defscrollback 55555
# 256 colors
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
# {{{ set caption
# backtick 1 5 5 true
# termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
# hardstatus string "screen (%n: %t)"
# caption always
caption splitonly
caption string "%{= kw}%Y-%m-%d;%c %{= kw}%-Lw%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+Lw%1`"
# set caption }}}
# {{{ add scrollback bar
# termcapinfo xterm* ti@:te@
# add scrollback bar }}}
# # mouse tracking allows to switch region focus by clicking
# mousetrack on
# {{{ visual bell
vbell_msg "bell: window ~%" # Message for visual bell
vbellwait 2 # Seconds to pause the screen for visual bell
vbell off # Turns visual bell off
# visual bell }}}
# disable lockscreen {{{
bind x
bind ^x
# disable lockscreen }}}
#
# # default windows
# screen -t Shell1 1 bash
# screen -t Shell2 2 bash
# screen -t Python 3 python
# screen -t Media 4 bash
# select 0
# bind c screen 1 # window numbering starts at 1 not 0
# bind 0 select 10
# get rid of silly xoff stuff
bind s split
# # layouts
# layout autosave on
# layout new one
# select 1
# layout new two
# select 1
# split
# resize -v +8
# focus down
# select 4
# focus up
# layout new three
# select 1
# split
# resize -v +7
# focus down
# select 3
# split -v
# resize -h +10
# focus right
# select 4
# focus up
# layout attach one
# layout select one
# # navigating regions with Ctrl-arrows
# bindkey "^[[1;5D" focus left
# bindkey "^[[1;5C" focus right
# bindkey "^[[1;5A" focus up
# bindkey "^[[1;5B" focus down
# # switch windows with F3 (prev) and F4 (next)
# bindkey "^[OR" prev
# bindkey "^[OS" next
# # switch layouts with Ctrl+F3 (prev layout) and Ctrl+F4 (next)
# bindkey "^[O1;5R" layout prev
# bindkey "^[O1;5S" layout next
# # F2 puts Screen into resize mode. Resize regions using hjkl keys.
# bindkey "^[OQ" eval "command -c rsz" # enter resize mode
# # use hjkl keys to resize regions
# bind -c rsz h eval "resize -h -5" "command -c rsz"
# bind -c rsz j eval "resize -v -5" "command -c rsz"
# bind -c rsz k eval "resize -v +5" "command -c rsz"
# bind -c rsz l eval "resize -h +5" "command -c rsz"
# # quickly switch between regions using tab and arrows
# bind -c rsz \t eval "focus" "command -c rsz" # Tab
# bind -c rsz -k kl eval "focus left" "command -c rsz" # Left
# bind -c rsz -k kr eval "focus right" "command -c rsz" # Right
# bind -c rsz -k ku eval "focus up" "command -c rsz" # Up
# bind -c rsz -k kd eval "focus down" "command -c rsz" # Down
startup_message off
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
# hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m,%d %{W}%0c%{g}]'
# huge scrollback buffer
defscrollback 55555
# 256 colors
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
# {{{ set caption
# backtick 1 5 5 true
# termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
# hardstatus string "screen (%n: %t)"
# caption always
caption splitonly
caption string "%{= kw}%Y-%m-%d;%c %{= kw}%-Lw%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+Lw%1`"
# set caption }}}
# {{{ add scrollback bar
# termcapinfo xterm* ti@:te@
# add scrollback bar }}}
# # mouse tracking allows to switch region focus by clicking
# mousetrack on
# {{{ visual bell
vbell_msg "bell: window ~%" # Message for visual bell
vbellwait 2 # Seconds to pause the screen for visual bell
vbell off # Turns visual bell off
# visual bell }}}
# disable lockscreen {{{
bind x
bind ^x
# disable lockscreen }}}
#
# # default windows
# screen -t Shell1 1 bash
# screen -t Shell2 2 bash
# screen -t Python 3 python
# screen -t Media 4 bash
# select 0
# bind c screen 1 # window numbering starts at 1 not 0
# bind 0 select 10
# get rid of silly xoff stuff
bind s split
# # layouts
# layout autosave on
# layout new one
# select 1
# layout new two
# select 1
# split
# resize -v +8
# focus down
# select 4
# focus up
# layout new three
# select 1
# split
# resize -v +7
# focus down
# select 3
# split -v
# resize -h +10
# focus right
# select 4
# focus up
# layout attach one
# layout select one
# # navigating regions with Ctrl-arrows
# bindkey "^[[1;5D" focus left
# bindkey "^[[1;5C" focus right
# bindkey "^[[1;5A" focus up
# bindkey "^[[1;5B" focus down
# # switch windows with F3 (prev) and F4 (next)
# bindkey "^[OR" prev
# bindkey "^[OS" next
# # switch layouts with Ctrl+F3 (prev layout) and Ctrl+F4 (next)
# bindkey "^[O1;5R" layout prev
# bindkey "^[O1;5S" layout next
# # F2 puts Screen into resize mode. Resize regions using hjkl keys.
# bindkey "^[OQ" eval "command -c rsz" # enter resize mode
# # use hjkl keys to resize regions
# bind -c rsz h eval "resize -h -5" "command -c rsz"
# bind -c rsz j eval "resize -v -5" "command -c rsz"
# bind -c rsz k eval "resize -v +5" "command -c rsz"
# bind -c rsz l eval "resize -h +5" "command -c rsz"
# # quickly switch between regions using tab and arrows
# bind -c rsz \t eval "focus" "command -c rsz" # Tab
# bind -c rsz -k kl eval "focus left" "command -c rsz" # Left
# bind -c rsz -k kr eval "focus right" "command -c rsz" # Right
# bind -c rsz -k ku eval "focus up" "command -c rsz" # Up
# bind -c rsz -k kd eval "focus down" "command -c rsz" # Down
相关文章推荐
- Alternatives to GNU Screen for Linux Terminal Multitasking
- GNU Screen Splitting
- Good .screenrc configuration for linux tool screen
- GNU Screen Splitting
- Play with GNU Screen
- Play with GNU Screen
- screenOrientation/Configuration
- Tmux : GNU Screen 的替代品
- 译 GNU Emacs Manual - [1] The Organization of the Screen 界面布局
- fix screen scrolling in ubuntu xterm when used with GNU screen
- SHELL TIPS: GNU SCREEN 的一些小技巧
- GNU Screen Splitting
- Configuration for Linux command `screen`
- 网海拾贝 2012-05 (expect,gnu screen/tmux, ipython, virtualenv, emacs...)
- Gnu Screen用法 【转】
- [转载 js]document.body ,window.screen javascript对象属性取值意义
- oracle net configuration Assistant 测试连接不成功,但是sql developer 可以连接
- microwindows代码分析 (三)screen driver显示驱动之X11
- c# 多显示器设置主屏幕(Set primary screen for multiple monitors)
- GNU Free Documentation License V1.2