X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tmux.conf.in;h=6d582d99f54b330b065af2110e2c386b2d569504;hb=b2a118a0ad79bcee7bd83925ac9df338d6087f2f;hp=9c22dfb9694541f723ef2827f102311a8ba45715;hpb=7d5048570745abcae35256e8a34e8a2f4d0f3b0a;p=config%2Fdotfiles.git diff --git a/tmux.conf.in b/tmux.conf.in index 9c22dfb..6d582d9 100644 --- a/tmux.conf.in +++ b/tmux.conf.in @@ -4,8 +4,9 @@ # # - To swap/renumber windows (like GNU screen's :number command) use # :swap-window -t . +# - GNU screen's screen -x can be replicated with tmux new-session -t. -# Copyright (C) 2011-2012 Simon Ruderich +# Copyright (C) 2011-2013 Simon Ruderich # # This file is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,10 +24,21 @@ # 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" + # Use a larger window history, in lines. -set-option -g history-limit 10000 +set-option -g history-limit 50000 -# Display messages for three seconds. +# Display Tmux messages for a longer time, in milliseconds. set-option -g display-time 3000 # Open new windows with the current working directory used when Tmux was @@ -61,9 +73,12 @@ set-option -g status-bg colour12 # Nothing left of window list. set-option -g status-left "" -# Current load average and hostname on the right. +# Current load average and hostname (#H) on the right. set-option -g status-right "#(uptime | sed 's/^.*load averages*: //; s/,//g') \ - #H" + #H \ + #(~/.shell/bin/temperature.pl -t TEMPERATURE)\ + #[] #(~/.shell/bin/battery.pl -t BATTERY)\ + " # Format for windows in the window list in the status line. #I window index, # #W window number, #F window flags. @@ -104,9 +119,15 @@ bind-key C-t display-message # Run urlview on the current screen content. Very useful to follow links. # Thanks to Arch wiki (https://wiki.archlinux.org/index.php/Tmux) for the -# basic idea. +# 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 +# me of this issue in Tmux. See tmux-windows.pl for details how it works. +bind-key \; source-file "TMUX_WINDOW_PATH" # vim: ft=tmux