mirror of
https://bitbucket.org/skobkin/dotfiles.git
synced 2024-11-22 04:46:02 +00:00
Initial. .screenrc draft added.
This commit is contained in:
commit
5583f05550
36
screen/.screenrc
Normal file
36
screen/.screenrc
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
screen -t bash4
|
||||||
|
screen -t sudo1 sudo -i
|
||||||
|
screen -t sudo2 sudo -i
|
||||||
|
#screen -t bash7
|
||||||
|
#screen -t bash8
|
||||||
|
#screen -t bash9
|
||||||
|
|
||||||
|
# Selecting first window
|
||||||
|
select 0
|
||||||
|
|
||||||
|
# Huge scrollback
|
||||||
|
defscrollback 4000
|
||||||
|
|
||||||
|
altscreen on
|
||||||
|
term screen-256color
|
||||||
|
bind ',' prev
|
||||||
|
bind '.' next
|
||||||
|
|
||||||
|
hardstatus alwayslastline
|
||||||
|
|
||||||
|
# Backtick commands to output in the hardstatus
|
||||||
|
backtick 1 5 5 sh -c 'sensors | fgrep -i "core " | tr "\n" " " | sed -e "s/Core\ [0-9]\:[ ]\++//g;s/ ([^)]*)//g;s/ $//"'
|
||||||
|
backtick 2 10 10 sh -c 'uptime | awk "{print \$8 \$9 \$10}" | sed -e "s/,/ /g"'
|
||||||
|
|
||||||
|
# http://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
|
||||||
|
#
|
||||||
|
# %H : hostname
|
||||||
|
# %= : expand to fill all space (used here to make remaining content flush right)
|
||||||
|
# %` : print output of 'backtick' command (defined elsewhere in .screenrc)
|
||||||
|
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][ %2` ][ %1` ][%{B} %d-%m-%Y %{W}%c %{g}]'
|
||||||
|
|
||||||
|
# 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"
|
Loading…
Reference in a new issue