From 3dee83aede30eaf3893c84dd8f411aa31a805dd2 Mon Sep 17 00:00:00 2001 From: id101010 Date: Thu, 13 Oct 2016 20:56:40 +0200 Subject: [PATCH] Added new tmux and vim status line and configs for urxvt --- tmux/tmux.conf | 19 +++++-------------- urxvt/Xdefaults | 38 ++++++++++++++++++++++++++++++++++++++ vim/vimrc | 15 ++++++++++++++- 3 files changed, 57 insertions(+), 15 deletions(-) create mode 100644 urxvt/Xdefaults diff --git a/tmux/tmux.conf b/tmux/tmux.conf index afecc9b..e0d0d05 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -53,23 +53,14 @@ bind Q kill-session ## Appearance ## # -set-option -g status-bg black -set-option -g status-fg blue -set-option -g status-interval 5 -set-option -g visual-activity on -set-window-option -g monitor-activity on -set-window-option -g window-status-current-fg white -set -g message-fg black -set -g message-bg yellow - -# statusbar settings - adopted from tmuxline.vim and vim-airline - Theme: murmur set -g status-justify "left" set -g status "on" set -g status-left-style "none" set -g message-command-style "fg=colour144,bg=colour237" set -g status-right-style "none" set -g pane-active-border-style "fg=colour27" +set -g status-utf8 "on" set -g status-style "bg=colour234,none" set -g message-style "fg=colour144,bg=colour237" set -g pane-border-style "fg=colour237" @@ -79,7 +70,7 @@ setw -g window-status-activity-attr "none" setw -g window-status-activity-style "fg=colour27,bg=colour234,none" setw -g window-status-separator "" setw -g window-status-style "fg=colour39,bg=colour234,none" -set -g status-left "#[fg=colour15,bg=colour27] #S #[fg=colour27,bg=colour234,nobold,nounderscore,noitalics]" -set -g status-right "#[fg=colour237,bg=colour234,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] %d.%m.%Y %H:%M #[fg=colour27,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour15,bg=colour27] #h " -setw -g window-status-format "#[fg=colour39,bg=colour234] #I #[fg=colour39,bg=colour234] #W " -setw -g window-status-current-format "#[fg=colour234,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] #I #[fg=colour144,bg=colour237] #{pane_current_path} #[fg=colour144,bg=colour237] #W #[fg=colour237,bg=colour234,nobold,nounderscore,noitalics]" +set -g status-left "#[fg=colour15,bg=colour27] #S #[fg=colour27,bg=colour234,nobold,nounderscore,noitalics]" +set -g status-right "#[fg=colour237,bg=colour234,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] %d.%m.%Y  %H:%M #[fg=colour27,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour15,bg=colour27] #h " +setw -g window-status-format "#[fg=colour39,bg=colour234] #I #[fg=colour39,bg=colour234] #W " +setw -g window-status-current-format "#[fg=colour234,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] #I #[fg=colour144,bg=colour237] #{pane_current_path} #[fg=colour144,bg=colour237] #W #[fg=colour237,bg=colour234,nobold,nounderscore,noitalics]" diff --git a/urxvt/Xdefaults b/urxvt/Xdefaults new file mode 100644 index 0000000..f55c797 --- /dev/null +++ b/urxvt/Xdefaults @@ -0,0 +1,38 @@ +# Real transparency -> needs composite manager +URxvt.depth: 32 +URxvt.background: rgba:0000/0000/0200/cfff + +# Fake transparency +#URxvt.transparent: true +#URxvt.shading: 30 + +URxvt.tintColor: White +URxvt.saveLines: 9000000 +URxvt.foreground: Grey + +# Fonts For Powerlinefonts: https://github.com/powerline/fonts +#URxvt.font: xft:DejaVu Sans Mono:pixelsize=18:antialias=true:hinting=true +#URxvt.boldFont: xft:DejaVu Sans Mono:bold:pixelsize=18:antialias=true:hinting=true +#URxvt.tabbed.font: xft:DejaVu Sans Mono:pixelsize=18:antialias=true:hinting=true +#URxvt.font: xft:Droid Sans Mono:pixelsize=18:antialias=true:hinting=true +#URxvt.boldFont: xft:Droid Sans Mono:bold:pixelsize=18:antialias=true:hinting=true +#URxvt.tabbed.font: xft:Droid Sans Mono:pixelsize=18:antialias=true:hinting=true +URxvt.font: xft:Roboto Mono for Powerline:pixelsize=15:antialias=true:hinting=false +URxvt.boldFont: xft:RobotoMono for Powerline :bold:pixelsize=14:antialias=true:hinting=true +URxvt.tabbed.font: xft:RobotoMono for Powerline :pixelsize=14:antialias=true:hinting=true + +# Misc +URxvt.scrollBar: false +URxvt.perl-ext-common: default, matcher, vtwheel +URxvt.secondaryScroll: true +URxvt.matcher.button: 1 +URxvt.urlLauncher: /usr/bin/firefox +URxvt.colorUL: #4682B4 +URxvt.tabbed.saveLines: 1000 +URxvt.tabbed.scrollBar: false +URxvt.tabbed.tabbar-fg: 3 +URxvt.tabbed.tabbar-bg: 0 +URxvt.tabbed.tab-fg: 0 +URxvt.tabbed.tab-bg: 1 +URxvt.tabbed.secondaryScroll: true +URxvt*inheritPixmap: true diff --git a/vim/vimrc b/vim/vimrc index a434c65..e1a5b7c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,4 +1,5 @@ " vimrc - VIM Configuration file " +" Needs: https://github.com/powerline/fonts " set nocompatible filetype off @@ -46,6 +47,16 @@ endif filetype plugin indent on +" Lightline configuration " +let g:lightline = { + \ 'colorscheme': 'default', + \ 'component': { + \ 'readonly': '%{&readonly?"":""}', + \ }, + \ 'separator': { 'left': '', 'right': '' }, + \ 'subseparator': { 'left': '', 'right': '' } + \ } + " Autointend and autoscroll 4 lines above the cursor " set cindent set scrolloff=4 @@ -79,8 +90,10 @@ set number set list set nowrap set hlsearch -set laststatus=2 set t_Co=256 +set laststatus=2 " Always display the statusline in all windows +set showtabline=2 " Always display the tabline, even if there is only one tab +set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline ) " "Automaticly reread a file, if file has changed" set autoread