From 2c610619f4a25af94a89cd36e886788ddc8b7136 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 10 Jul 2014 17:53:18 +0200 Subject: tmux + misc Signed-off-by: Florian Pritz --- .Xdefaults | 8 ++++++++ .screenrc | 1 + .tmux.conf | 33 +++++++++++++++++++-------------- .xinitrc | 6 +++--- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/.Xdefaults b/.Xdefaults index b9f5762..93a33c5 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -1,6 +1,14 @@ *font: xft:DejaVu\ Sans\ Mono:size=9:antialias=true,xft:unifont *boldFont: xft:DejaVu\ Sans\ Mono:size=9:bold,xft:unifont +! xterm +xterm*faceName: DejaVu Sans Mono:pixelsize=12 +XTerm*scaleHeight: 1.08 +XTerm.termName: xterm-256color +XTerm*eightBitInput: false +!*VT100*translations: #override : exec-formatted("/usr/bin/urxvt-link.sh '%t'", PRIMARY) +!XTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48 + !*dpi: 75 *antialias: true *hinting: true diff --git a/.screenrc b/.screenrc index a4dd838..3eb7650 100644 --- a/.screenrc +++ b/.screenrc @@ -15,6 +15,7 @@ hardstatus alwayslastline #hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %l %{g}]' hardstatus string '%{= kG}[ %{G}%H %{g}%{= kG}]%{=b W} %=%-w%{r}(%{b}%n %t%{r})%{=b W}%+w%=%{= kG}[%{B} %l %{g}%{= kG}]' + #-------------------- # Autostart #-------------------- diff --git a/.tmux.conf b/.tmux.conf index 35eb29a..ea6d25d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -18,28 +18,36 @@ set -g message-bg default set -g message-fg red set -g status-attr bright -set -g status-bg default +set -g status-bg black set -g status-fg default set -g pane-active-border-fg default set -g pane-active-border-bg black # Options -set -g bell-action none +set -g bell-action any set -g history-limit 50000 set -g status on set -g status-keys vi set -g status-utf8 on set -g set-titles on -set -g status-left " -- #S -- " -set -g status-left-length 30 -set -g status-right "" +set -g default-terminal "screen-256color" +set -g set-titles-string "tmux:#I [ #W ]" +set -g base-index 1 + +#set -g status-left-length 30 +set -g status-left '#[fg=green]#H #[fg=black,bright]• #[default]#[fg=blue]#(uname -r)#[default] #[fg=black,bright]• #[default]' +set -g status-justify centre +set -g status-right '#[fg=black,bright]• #[fg=magenta]#(cut -d " " -f1-4 /proc/loadavg)' +set -g status-left-length 40 +set -g status-right-length 40 setw -g utf8 on setw -g automatic-rename on setw -g clock-mode-style 24 setw -g mode-keys vi +setw -g mode-mouse on set -g prefix C-a unbind-key C-b @@ -49,8 +57,12 @@ bind-key C-a send-prefix bind-key W command-prompt "swap-window -t '%%'" bind-key R command-prompt "rename-session '%%'" -bind j down-pane -bind k up-pane +# confirm before killing a window or the server +bind-key k confirm kill-window +bind-key K confirm kill-server + +#bind j down-pane +#bind k up-pane # Keys to switch session. #bind q switchc -tmain @@ -60,16 +72,9 @@ bind k up-pane bind i choose-window #bind m split-window "exec ncmpcpp" -#256 -set -g default-terminal "screen-256color" - # Default Sessions #new -d -s maini -set -g set-titles-string "tmux:#I [ #W ]" -set -g base-index 1 -set -g bell-action any - bind-key b set-option status bind r source-file ~/.tmux.conf diff --git a/.xinitrc b/.xinitrc index 879e5c8..daa7a7b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -2,7 +2,7 @@ cd $HOME export VDPAU_NVIDIA_NO_OVERLAY=1 -export SDL_AUDIODRIVER="pulse" +export SDL_AUDIODRIVER=pulseaudio xrandr --output DVI-D-0 --left-of DVI-I-1 @@ -21,9 +21,9 @@ xkbcomp ~/.xkbmap $DISPLAY & xautolock -nowlocker $HOME/bin/screen-locker.sh -locker $HOME/bin/screen-locker.sh -time 10 & pulseaudio --start & remote-notify-client.sh & -compton -bfzCG --backend glx --vsync opengl-swc --paint-on-overlay -D2 +compton -bfzCG --backend glx --vsync opengl-swc --paint-on-overlay -D2 #--glx-no-rebind-pixmap --glx-no-stencil --unredir-if-possible #xflux -l 48.190 -g 15.62 -k 4200 -redshift -l 48.190:15.62 -t 5700:4200 -m randr & +redshift -l 48.190:15.62 -t 5700:4000 -m randr & autostart () { #urxvt -g 125x+45+1041+0 -e ssh mistral & -- cgit v1.2.3-24-g4f1b