]> git.deb.at Git - debienna.git/blobdiff - SebastianBachmann/Screenrc/index.mdwn
conerted moin to mdwn format
[debienna.git] / SebastianBachmann / Screenrc / index.mdwn
index 3c81978e45e9198c57297a8c7e8088a178e526fb..d34d86fcbb25cc08711df93ac3273927793d56a2 100644 (file)
@@ -1,98 +1,94 @@
-.screenrc:\r
-{{{\r
-backtick 1 0 10   /usr/bin/cpu-screen\r
-backtick 2 0 30   /usr/bin/ip-screen\r
-backtick 3 0 5    /usr/local/bin/bat_state.pyc\r
-backtick 4 0 5    /usr/local/bin/meminfo.pyc\r
-\r
-# Wich screen windows should start\r
-screen -t top 0 nice top\r
-screen -t irssi 1 nice irssi\r
-screen 2 zsh\r
-# Local in META Screen by lefant\r
-# screen -t localhost 1 screen -S local -d -RR \r
-\r
-# use %n to display the window number and %t for its title:\r
-  activity              "activity in %n (%t) [%w:%s]~"\r
-\r
-# pass on the "beep" (CTRL-G) by adding a '~':\r
-  bell                  "bell     in %n (%t) [%w:%s]~"\r
-\r
-# pow_detach_msg:       Message shown when session\r
-  pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."\r
-\r
-# vbell_msg:            Message shown when the\r
-  vbell_msg             " *beep* "\r
-\r
-\r
-defutf8               on  \r
-login                 off \r
-deflogin              off \r
-startup_message       off \r
-vbell                 on  \r
-bell_msg        'Bell in %n'\r
-\r
-termcapinfo xterm*|linux*|rxvt*|Eterm* OP\r
-\r
-defscrollback         1000\r
-#hardcopydir           ~/.screen\r
-hardcopy_append       on  \r
-shell                 zsh \r
-\r
-hardstatus alwayslastline\r
-#caption always "%{wk}%?%-Lw%?%{kW}%n*%f %t%?(%u)%?%{wk}%?%+Lw"\r
-caption always "%{b k}[ %{r}$USER@%{b}%H %{b}]%{w}[ %1` ]%{C}[ %4` ]%{B}[%= %2` %= ]%-62=%{Y}[ %{Y}%l ]%{b}[ %3` ]%{g}[ %0c ]%{w}[ %D %d.%m.%Y ]"\r
-hardstatus string "%{g}%=%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%=%{g}"\r
-\r
-sorendition 10 99 # default!\r
-\r
-#idle 600 eval "screen cmatrix -o -f -u 9 -C red -s" "idle 0"\r
-\r
-#usefull binds\r
-  bind 'K' kill\r
-  bind 'I' login on\r
-  bind 'O' login off\r
-  bind '}' history\r
-  bind Q quit\r
-  bind G screen -t 'google'    w3m www.google.com\r
-  bind H screen -t HeiseTicker w3m www.heise.de/newsticker/pda/data/paket4.html\r
-  bind X lockscreen\r
-}}}\r
-\r
-/usr/local/bin/bat_info.py (compile with py_compilefiles)\r
-{{{\r
-\r
-import re\r
-import string\r
-\r
-state = open("/proc/acpi/battery/BAT0/state","r").readlines()\r
-info = open("/proc/acpi/battery/BAT0/info","r").readlines()\r
-\r
-\r
-aktuell = string.join(re.findall("[0-9]", state[4]), '')\r
-design = string.join(re.findall("[0-9]", info[1]), '')\r
-full = string.join(re.findall("[0-9]", info[2]), '')\r
-\r
-aktuell = float(aktuell)\r
-design = float(design)\r
-full = float(full)\r
-print "%.2f | %.2f" %((100/(design/aktuell)), (100/(design/full)))\r
-}}}\r
-\r
-/usr/local/bin/meminfo.py\r
-{{{\r
-import re\r
-import string\r
-\r
-mem = open("/proc/meminfo","r").readlines()\r
-\r
-all = float(string.join(re.findall("[0-9]",mem[0]), ''))/1048576\r
-free = float(string.join(re.findall("[0-9]",mem[1]), ''))/1048576\r
-swapall = float(string.join(re.findall("[0-9]",mem[11]), ''))/1048576\r
-swapfree = float(string.join(re.findall("[0-9]",mem[12]), ''))/1048576\r
-\r
-print "%.2f/%.2f | %.2f/%.2f" %(free,all,swapfree,swapall)\r
-}}}\r
-\r
-\r
-Get your ip-screen and cpu-screen from GRML!
\ No newline at end of file
+
+.screenrc: 
+[[!format txt """
+backtick 1 0 10   /usr/bin/cpu-screen
+backtick 2 0 30   /usr/bin/ip-screen
+backtick 3 0 5    /usr/local/bin/bat_state.pyc
+backtick 4 0 5    /usr/local/bin/meminfo.pyc
+
+# Wich screen windows should start
+screen -t top 0 nice top
+screen -t irssi 1 nice irssi
+screen 2 zsh
+# Local in META Screen by lefant
+# screen -t localhost 1 screen -S local -d -RR 
+
+# use %n to display the window number and %t for its title:
+  activity              "activity in %n (%t) [%w:%s]~"
+
+# pass on the "beep" (CTRL-G) by adding a '~':
+  bell                  "bell     in %n (%t) [%w:%s]~"
+
+# pow_detach_msg:       Message shown when session
+  pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
+
+# vbell_msg:            Message shown when the
+  vbell_msg             " *beep* "
+
+
+defutf8               on  
+login                 off 
+deflogin              off 
+startup_message       off 
+vbell                 on  
+bell_msg        'Bell in %n'
+
+termcapinfo xterm*|linux*|rxvt*|Eterm* OP
+
+defscrollback         1000
+#hardcopydir           ~/.screen
+hardcopy_append       on  
+shell                 zsh 
+
+hardstatus alwayslastline
+#caption always "%{wk}%?%-Lw%?%{kW}%n*%f %t%?(%u)%?%{wk}%?%+Lw"
+caption always "%{b k}[ %{r}$USER@%{b}%H %{b}]%{w}[ %1` ]%{C}[ %4` ]%{B}[%= %2` %= ]%-62=%{Y}[ %{Y}%l ]%{b}[ %3` ]%{g}[ %0c ]%{w}[ %D %d.%m.%Y ]"
+hardstatus string "%{g}%=%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%=%{g}"
+
+sorendition 10 99 # default!
+
+#idle 600 eval "screen cmatrix -o -f -u 9 -C red -s" "idle 0"
+
+#usefull binds
+  bind 'K' kill
+  bind 'I' login on
+  bind 'O' login off
+  bind '}' history
+  bind Q quit
+  bind G screen -t 'google'    w3m www.google.com
+  bind H screen -t HeiseTicker w3m www.heise.de/newsticker/pda/data/paket4.html
+  bind X lockscreen
+"""]]
+/usr/local/bin/bat_info.py (compile with py_compilefiles) 
+[[!format txt """
+import re
+import string
+
+state = open("/proc/acpi/battery/BAT0/state","r").readlines()
+info = open("/proc/acpi/battery/BAT0/info","r").readlines()
+
+
+aktuell = string.join(re.findall("[0-9]", state[4]), '')
+design = string.join(re.findall("[0-9]", info[1]), '')
+full = string.join(re.findall("[0-9]", info[2]), '')
+
+aktuell = float(aktuell)
+design = float(design)
+full = float(full)
+print "%.2f | %.2f" %((100/(design/aktuell)), (100/(design/full)))
+"""]]
+/usr/local/bin/meminfo.py 
+[[!format txt """
+import re
+import string
+
+mem = open("/proc/meminfo","r").readlines()
+
+all = float(string.join(re.findall("[0-9]",mem[0]), ''))/1048576
+free = float(string.join(re.findall("[0-9]",mem[1]), ''))/1048576
+swapall = float(string.join(re.findall("[0-9]",mem[11]), ''))/1048576
+swapfree = float(string.join(re.findall("[0-9]",mem[12]), ''))/1048576
+
+print "%.2f/%.2f | %.2f/%.2f" %(free,all,swapfree,swapall)
+"""]]
+Get your ip-screen and cpu-screen from GRML!