mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 16:39:42 -04:00
added tmux module
This commit is contained in:
parent
3e3d67e6bd
commit
37f704cc19
11 changed files with 101 additions and 13 deletions
9
src/user/modules/tmux/config/shellHook.nix
Normal file
9
src/user/modules/tmux/config/shellHook.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
''
|
||||
case $- in
|
||||
*i*)
|
||||
if [ -z "$DISPLAY" ] && [ -z "$TMUX" ]; then
|
||||
exec tmux
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
''
|
||||
10
src/user/modules/tmux/config/tmux.nix
Normal file
10
src/user/modules/tmux/config/tmux.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
''
|
||||
bind -n M-C source-file ~/.config/tmux/tmux.conf
|
||||
|
||||
bind-key -n M-h select-pane -L
|
||||
bind-key -n M-j select-pane -D
|
||||
bind-key -n M-k select-pane -U
|
||||
bind-key -n M-l select-pane -R
|
||||
|
||||
bind-key -n M-q kill-pane
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue