]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - tmux.conf.in
lessfilter: support nfo files
[config/dotfiles.git] / tmux.conf.in
index ea82d371f34f5e081f630fa092044f3af13955f9..6d582d99f54b330b065af2110e2c386b2d569504 100644 (file)
@@ -4,6 +4,7 @@
 #
 # - To swap/renumber windows (like GNU screen's :number command) use
 #   :swap-window -t <number>.
+# - GNU screen's screen -x can be replicated with tmux new-session -t.
 
 # Copyright (C) 2011-2013  Simon Ruderich
 #
 
 # GENERAL
 
+# Use vlock to lock the screen. Tmux doesn't have an internal lock program
+# like GNU screen!
+set-option -g lock-command "vlock"
+# Lock sessions individually. Otherwise lock-after-time will wait on all other
+# sessions to idle before it locks this session.
+set-option -g lock-server off
+
 # Use Zsh as shell. Tmux does not display a warning if the shell isn't
 # available!
 set-option -g default-shell "/bin/zsh"
@@ -68,6 +76,7 @@ set-option -g status-left ""
 # Current load average and hostname (#H) on the right.
 set-option -g status-right "#(uptime | sed 's/^.*load averages*: //; s/,//g') \
                             #H \
+                            #(~/.shell/bin/temperature.pl -t TEMPERATURE)\
                             #[] #(~/.shell/bin/battery.pl -t BATTERY)\
                             "
 
@@ -113,7 +122,8 @@ bind-key C-t display-message
 # basic idea how to enable this in tmux.
 bind-key C-b capture-pane \; \
              save-buffer ~/.tmp/tmux-urlview \; \
-             new-window "$SHELL -c 'urlview < ~/.tmp/tmux-urlview'"
+             delete-buffer \; \
+             new-window "urlview <~/.tmp/tmux-urlview"
 
 # Binding for fast switching to windows 10 to 29 (and more if necessary).
 # Thanks to Kays in #irssi on Freenode (2012-10-18 16:25 CEST) for reminding