summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <gueux@gueux.org>2014-10-29 15:54:43 +0100
committerFélix Sipma <gueux@gueux.org>2014-10-29 15:54:43 +0100
commit4b7aac5db692547fcfae12b5a6f40f225e6cdb3b (patch)
treec0c6daed260b82d3fd149fb8e50b046aa8ed617b
parentb5db2769eaaab7166e322c9ed4d00a8d1265c941 (diff)
screen
-rw-r--r--.screenrc145
1 files changed, 145 insertions, 0 deletions
diff --git a/.screenrc b/.screenrc
new file mode 100644
index 0000000..dd96d9c
--- /dev/null
+++ b/.screenrc
@@ -0,0 +1,145 @@
+#choix du shell dans screen
+#shell zsh
+
+# j'aime quand ça parle
+verbose on
+# pour activer tout le temps le multiuser
+multiuser on
+# avec la sonnerie audible meme depuis les autres fenetres
+bell "Bell in window %^G"
+# sonnerie visuelle on
+vbell off
+
+encoding UTF-8
+
+
+# Set messages timeout to one second:
+msgwait 1
+
+# Empecher Vim de laisser son contenu a l'ecran apres l'avoir quitte
+altscreen on
+
+################
+
+################
+# keybindings
+################
+#remove some stupid / dangerous key bindings
+bind k
+bind ^k
+bind .
+bind ^\
+bind \\
+bind ^h
+bind h
+#make them better
+bind 'K' kill
+bind 'I' login on
+bind 'O' login off
+bind '}' history
+
+# F8 to turn the status bar off
+#bindkey -k k8 hardstatus alwayslastline
+# F9 to turn the status bar on
+#bindkey -k k9 hardstatus alwaysignore
+# F1 and F2 to move one screen forward or backward
+bindkey -k k1 prev
+bindkey -k k2 next
+
+
+# detache quand ça bloque
+autodetach on
+# pas de message de copyright
+startup_message off
+# message de déconnexion
+pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
+
+# lignes d'historique mémorisées
+defscrollback 10000
+
+# raccourcis pour spliter ET lancer un terminal dans le split
+bind s eval "split" "focus down" "screen"
+
+# raccourcis pratique pour killer un split
+bind X remove
+
+
+################
+# default windows
+################
+##chdir [dir] change default directory for following windows
+#chdir
+##end chdir
+#first window
+#screen -t default 0
+
+#caption and hardstatus
+#caption always “%?%F%{= BW}%:%{= Wk}%? [%h] %n %t”
+
+#caption always "%{=}%?%{r}%H %L=%{+b}%?%{b}%-Lw%47L>%?%{w}%n*%f %t %?%{b}%+Lw%?%{g}%-31=%c %l %Y-%m-%d"
+
+
+# screen -t mutt /bin/sh -c "mutt;bash"
+# screen -t ncmpc /bin/sh -c "ncmpc;bash"
+
+
+## Explanation of hardstatus line ##
+
+# Ignore the ' marks if you use these examples for yourself
+
+# Note that if you want to use the color brown under konsole
+# You actually use bright yellow (%{Y}).
+
+# Note the embeded space after the colon, I feel
+# it just looks nicer with a blank between the
+# text and console edge:
+# '%{=b}%{G} Screen(s): '
+
+# This prints the window listing in blue:
+# '%{b}%w'
+
+# This right-aligns what follows:
+# '%='
+
+# This displays the time (hours and minutes) in 12hr format
+# and adds an AM/PM flag, in bold green:
+# '%{G}%C%A'
+
+# This displays the day of the week:
+# '%D'
+
+#This displays the date in Mon/day/year format:
+# and again I embeded a space to give me one space
+# between the text and console edge:
+# '%M/%d/%Y '
+
+# The resulting command give you a status line that
+# looks like this:
+# | Screen(s): 0* bash 5:30PM Fri, Jun/25/2004 |
+# (The pipes indicate the edges of the xterm/console).
+
+# Green text, time, and date; windows in blue:
+#hardstatus alwayslastline "%{=b}%{g}%h %{r}<%w> %=%{y}%c:%s %Y-%m-%d (%D)"
+
+hardstatus alwayslastline "%{= kG}[%{K}%H%{G}][%{K}%l%{G}]%{K} %-Lw%{r}%{+b}%n*%f %t%{w}%{K}%{-b}%+Lw%{w}"
+
+#hardstatus alwayslastline "%{=b}%{G}Screen(s): %{w}%-Lw%n%f* %t%{-}%{w}%+Lw%=%{G}Connected to %H"
+
+
+
+
+#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
+#hardstatus alwayslastline "%{+b kr}[ %H ] %{ky} Load: %l %-=%{kb} %c %d.%m.%Y"
+#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
+
+#hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}'
+
+#hardstatus string "%{= kG}[%{G}%H%{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%l][%{B}%d/%m %{W}%c%{g}]"
+
+#hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}'
+
+#hardstatus string '%{= kg}[%{G}%H%{g}][%= %{= kw}%?%-Lw%?%{=b kR}(%{W}%n-%t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{g}'
+#hardstatus string "%{= ky}%-Lw%{=r}%20>%n %t%{= ky}%+Lw %{= ky}%-=| %{= kw}[%{Y}%l%{g}] %{-}%{=r}${USER}@%H"
+
+#term screen-256color
+term linux