-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
107 lines (83 loc) · 4.25 KB
/
.screenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
################################################################################
# Author: Mohamed Boughaba #
# Repository: https://github.com/mboughaba/dotfiles #
# Description: My own taste of dotfiles #
# ╔╗ ┌─┐ ┬╔╦╗┌─┐┬─┐┌─┐┬ ┬┌─┐┌┬┐ #
# ╠╩╗├┤ │║║║├─┘├┬┘│ │└┐┌┘├┤ ││ #
# ╚═╝└─┘ ┴╩ ╩┴ ┴└─└─┘ └┘ └─┘─┴┘ #
################################################################################
################################################################################
# Color
################################################################################
# Use 256 colors
term screen-256color
################################################################################
# Status bar
################################################################################
hardstatus off
hardstatus alwayslastline "%{= bw} %{+b k}%S %{yb}%{+b yW} %t%? [%h]%? %{by}%{+b bG} %{k}$LOGNAME %{Kb} %H %{= kK}%{kk}%= %{= kG}%?%-Lw%?%{+b kb}%n*%f %t%{= kG}%+Lw%= %{= kB}%{+b Bk} BDD %{Br}%{+b rw} C++ %{rg}%{+b gw} ViM %{gy}%{+b yw} JS %{= G}%{yC}%{+b Ck} Load: %l %{CG}%{GG}%{-B d} %D %Y-%m-%d %{W}%c:%s %{G}"
# Watch out! requires decent utf-8 support due to use of powerline patched font
#hardstatus alwayslastline "%{= bw} %{+b k}%S %{yb}%{+b yW} %t%? [%h]%? %{by}%{+b bG} %{k}$LOGNAME %{Kb} %H %{= kK}%{kk}%= %{= kG}%?%-Lw%?%{+b kb}%n*%f %t%{= kG}%+Lw%= %{= kB}%{+b Bk} BDD %{Br}%{+b rw} C++ %{rg}%{+b gw} ViM %{gy}%{+b yw} JS %{= G}%{yC}%{+b Ck} Load: %l %{CG}%{GG}%{-B d} %D %Y-%m-%d %{W}%c:%s %{G}"
# Caption bar only on split
caption splitonly "%?%F%{+buB Kb}%:%{KK} %? ACTIVE SPLIT: %t %h "
################################################################################
# Activity
################################################################################
activity "%c activity -> %n%f %t"
bell "%c bell -> %n%f %t"
# Enable activity monitoring for windows.
defmonitor on
################################################################################
# Settings
################################################################################
# Turn welcome message off
startup_message off
# Use X scrolling mechanism
termcapinfo xterm* ti@:te@
# Turn off visual bell
vbell off
# Fix for residual editor text
altscreen on
# Increase the scrollback buffer size
defscrollback 30000
# Always start screen with utf8 enabled. (screen -U)
# requires setting the language in shell init: export LANG=en_US.UTF-8
defutf8 on
utf8 on on
# Shorten the time a message is displayed in seconds.
msgwait 2
# Eliminate apparent delay when entering copy mode
msgminwait 0
# detach on disconnect
autodetach on
# make search case-insensitive
ignorecase on
# Suppress trailing blank lines when scrolling up in the history buffer.
compacthist on
# Deal with dead terminals.
defnonblock on
# Display screen saver after some seconds of inactivity
#idle 120
idle 600
# Hide white bars (vertical, command bar, ...)
# it make the workspace much cleaner and distraction free.
rendition so "="
################################################################################
# Binding
################################################################################
# Reload screenrc
bind R eval 'source $HOME/.screenrc' 'echo "reloaded!"'
# Setup default layout
bind B eval 'source $HOME/.gnuscreen/.window' 'echo "windows setup!"'
# Easy split
# use V instead or | for vertical split
bind V split -v
################################################################################
# Layout
################################################################################
eval 'source $HOME/.gnuscreen/.layout' 'echo "layout setup!"'
################################################################################
# Blanker/screensaver
################################################################################
# Custom blanker (screen saver/blanker) program
blankerprg $HOME/.gnuscreen/.matrix