Created
October 31, 2018 00:03
-
-
Save LDMFD/9350718cde71b82c8143751367710468 to your computer and use it in GitHub Desktop.
awesome .screenrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
# [hostname - cpu-load] windows... [24h clock] | |
hardstatus string '%{= kG}[%{m}%H - %{= r}%l%? %1`%?%{g}]%= %{= kg}%-w%{gk} %n*%t%?(%u)%? %{-}%+w %=%{g}[%{m}%c%{g}]' | |
# huge scrollback buffer | |
defscrollback 50000 | |
# put screen scrollback into terminal | |
termcapinfo xterm* ti@:te@ | |
# no welcome message | |
startup_message off | |
# 256 colors | |
attrcolor b ".I" | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' | |
defbce on | |
# Change command key to ctrl+space | |
escape ^@a | |
# switch windows with ctrl+left/right (or toggle last with ctrl+space space) | |
bindkey "^[[1;5D" prev | |
bindkey "^[[1;5C" next | |
# layouts | |
layout autosave on |
Explanation of ^@a
here; https://unix.stackexchange.com/questions/449413/why-does-the-screenrc-key-binding-a-map-to-ctrlspace
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally derived from https://gist.github.com/joaopizani/2718397