summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2021-01-04 17:21:05 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2021-01-04 17:21:05 -0700
commit8da0a7927b2c218b3f09117a01aff274ecaa993c (patch)
tree438ef29ce70820ab55af1b9c8e9956326248d9ce
parent3876d9c187271309b88128035989714003f676fa (diff)
Add tmux support
-rw-r--r--.config/alacritty/alacritty.yml12
-rw-r--r--.config/nvim/init.vim23
-rw-r--r--.config/sxhkd/sxhkdrc6
-rw-r--r--.config/tmux/tmux.conf19
-rwxr-xr-x.local/bin/tmuxed4
5 files changed, 45 insertions, 19 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index e2505d3..58adf82 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -134,13 +134,17 @@ cursor:
live_config_reload: true
+# Only needed if alacritty should always start tmux,
+# but I rather configure this with sxhkd.
# - (macOS) /bin/bash --login
# - (Linux/BSD) user login shell
# - (Windows) powershell
-#shell:
-# program: /bin/bash
-# args:
-# - --login
+# shell:
+# program: /bin/zsh
+# args:
+# - -l
+# - -c
+# - "tmux attach || tmux"
#working_directory: None
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 9b8f1be..e92740e 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -33,6 +33,7 @@ set showcmd
"Airline
Plug 'vim-airline/vim-airline'
let g:airline_powerline_fonts=1
+ " let g:airline#extensions#tabline#enabled=1
Plug 'vim-airline/vim-airline-themes'
let g:airline_theme='dracula'
@@ -73,17 +74,17 @@ set showcmd
" highlight link JavaIdentifier NONE
" Syntax
- Plug 'vim-syntastic/syntastic'
- set statusline+=%#warningmsg#
- set statusline+=%{SyntasticStatuslineFlag()}
- set statusline+=%*
- let g:syntastic_always_populate_loc_list=1
- let g:syntastic_auto_loc_list=1
- let g:syntastic_check_on_open=1
- let g:syntastic_check_on_wq=0
- let g:syntastic_tex_checkers=['chktex']
- " let g:syntastic_tex_lacheck_quiet_messages = {'regex': '\Vpossible unwanted space at'}
- let g:syntastic_tex_chktex_quiet_messages = {'level': 'warnings'}
+ " Plug 'vim-syntastic/syntastic'
+ " set statusline+=%#warningmsg#
+ " set statusline+=%{SyntasticStatuslineFlag()}
+ " set statusline+=%*
+ " let g:syntastic_always_populate_loc_list=1
+ " let g:syntastic_auto_loc_list=1
+ " let g:syntastic_check_on_open=1
+ " let g:syntastic_check_on_wq=0
+ " let g:syntastic_tex_checkers=['chktex']
+ "" let g:syntastic_tex_lacheck_quiet_messages = {'regex': '\Vpossible unwanted space at'}
+ " let g:syntastic_tex_chktex_quiet_messages = {'level': 'warnings'}
call plug#end()
"" Commands for plug.
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 612eaf3..23393fa 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -3,10 +3,8 @@
#
# Basic.
-super + Return
- $TERMINAL
-# Read after releasing 'd' because as soon
-# as dmenu runs it listens for kb presses.
+super + {_,shift + }Return
+ $TERMINAL { ,-e tmuxed}
super + d
dmenu_run -fn "Noto Sans Mono:size=12" -nb "$(xresource background)" -nf "$(xresource foreground)" -sb "$(xresource color4)" -sf "$(xresource color0)"
super + Escape
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
new file mode 100644
index 0000000..71a3f01
--- /dev/null
+++ b/.config/tmux/tmux.conf
@@ -0,0 +1,19 @@
+set-option -g status 'on'
+set-option -g status-bg 'colour8'
+set-option -g status-left-length '100'
+set-option -g status-right-length '100'
+set-option -g pane-active-border-style fg='colour65'
+set-option -g pane-border-style fg='colour0'
+set-option -g message-style bg='colour0'
+set-option -g message-style fg='colour15'
+set-option -g message-command-style bg='colour0'
+set-option -g message-command-style fg='colour15'
+set-option -g status-left '#[fg=colour15,bold] #S '
+set-option -g status-right '#[fg=colour0,bg=colour8]#[fg=colour6,bg=colour0] %Y-%m-%d %H:%M '
+set-window-option -g window-status-style fg='colour15'
+set-window-option -g window-status-activity-style bg='colour8'
+set-window-option -g window-status-activity-style fg='colour65'
+set-window-option -g window-status-separator ''
+set-window-option -g window-status-style bg='colour8'
+set-window-option -g window-status-format '#[fg=colour15,bg=colour8] #I #W '
+set-window-option -g window-status-current-format '#[fg=colour8,bg=colour4]#[fg=colour0] #I  #W #[fg=colour4,bg=colour8]'
diff --git a/.local/bin/tmuxed b/.local/bin/tmuxed
new file mode 100755
index 0000000..e06d6c5
--- /dev/null
+++ b/.local/bin/tmuxed
@@ -0,0 +1,4 @@
+#!/bin/sh
+# For some reason one cannot pass this to alacritty directly,
+# you have to call a script/program...
+tmux attach || tmux