Change bindings in I3 + update neovim
This commit is contained in:
parent
ef2bff1dd2
commit
bf80b5054a
@ -320,7 +320,7 @@ tiling_drag modifier titlebar
|
|||||||
## Syntax:
|
## Syntax:
|
||||||
#exec [--no-startup-id] <command>
|
#exec [--no-startup-id] <command>
|
||||||
#exec_always [--no-startup-id] <command>
|
#exec_always [--no-startup-id] <command>
|
||||||
exec_always --no-startup-id setxkbmap us
|
# exec_always --no-startup-id setxkbmap us
|
||||||
exec_always --no-startup-id ~/.screenlayout/default.sh
|
exec_always --no-startup-id ~/.screenlayout/default.sh
|
||||||
exec_always --no-startup-id ~/.config/i3/scripts/i3_autostart
|
exec_always --no-startup-id ~/.config/i3/scripts/i3_autostart
|
||||||
|
|
||||||
|
|||||||
@ -38,8 +38,8 @@ set $web_browser firefox
|
|||||||
|
|
||||||
## -- Terminal --
|
## -- Terminal --
|
||||||
bindsym $MOD+Return exec --no-startup-id $terminal
|
bindsym $MOD+Return exec --no-startup-id $terminal
|
||||||
bindsym $MOD+Shift+Return exec --no-startup-id $terminal --float
|
# bindsym $MOD+Shift+Return exec --no-startup-id "$terminal --float"
|
||||||
bindsym $MOD+$ALT+Return exec --no-startup-id $terminal --full
|
# bindsym $MOD+$ALT+Return exec --no-startup-id "$terminal --full"
|
||||||
|
|
||||||
## -- GUI Apps --
|
## -- GUI Apps --
|
||||||
bindsym $MOD+Shift+f exec --no-startup-id $file_manager
|
bindsym $MOD+Shift+f exec --no-startup-id $file_manager
|
||||||
@ -47,10 +47,8 @@ bindsym $MOD+Shift+e exec --no-startup-id $text_editor
|
|||||||
bindsym $MOD+Shift+w exec --no-startup-id $web_browser
|
bindsym $MOD+Shift+w exec --no-startup-id $web_browser
|
||||||
|
|
||||||
## -- CLI Apps --
|
## -- CLI Apps --
|
||||||
bindsym $ALT+Control+v exec --no-startup-id "$alacritty -e vim"
|
bindsym $MOD+Shift+Return exec --no-startup-id "$terminal --float -e tmux new-session nvim"
|
||||||
bindsym $ALT+Control+r exec --no-startup-id "$alacritty -e ranger"
|
# bindsym $MOD+Control+h exec --no-startup-id "$terminal -e tmux new-session htop"
|
||||||
bindsym $ALT+Control+h exec --no-startup-id "$alacritty -e htop"
|
|
||||||
bindsym $ALT+Control+m exec --no-startup-id $music_player
|
|
||||||
|
|
||||||
## -- Rofi Applets --
|
## -- Rofi Applets --
|
||||||
bindsym $MOD+p exec --no-startup-id $rofi_applets/rofi_launcher -dpi 1
|
bindsym $MOD+p exec --no-startup-id $rofi_applets/rofi_launcher -dpi 1
|
||||||
@ -137,10 +135,13 @@ bindsym $MOD+Left focus left
|
|||||||
bindsym $MOD+Down focus down
|
bindsym $MOD+Down focus down
|
||||||
bindsym $MOD+Up focus up
|
bindsym $MOD+Up focus up
|
||||||
bindsym $MOD+Right focus right
|
bindsym $MOD+Right focus right
|
||||||
|
|
||||||
|
bindsym $MOD+a focus left
|
||||||
|
bindsym $MOD+d focus right
|
||||||
## Sets focus to the parent container of the current container.
|
## Sets focus to the parent container of the current container.
|
||||||
bindsym $MOD+a focus parent
|
# bindsym $MOD+a focus parent
|
||||||
## The opposite of `focus parent`, sets the focus to the last focused child container.
|
## The opposite of `focus parent`, sets the focus to the last focused child container.
|
||||||
bindsym $MOD+d focus child
|
# bindsym $MOD+d focus child
|
||||||
## Automatically sets focus to the adjacent container.
|
## Automatically sets focus to the adjacent container.
|
||||||
bindsym $MOD+Tab focus next
|
bindsym $MOD+Tab focus next
|
||||||
## Toggles focus between floating/tiling containers.
|
## Toggles focus between floating/tiling containers.
|
||||||
|
|||||||
@ -9,12 +9,14 @@ DIR="$HOME/.config/i3"
|
|||||||
CONFIG="$DIR/alacritty/alacritty.toml"
|
CONFIG="$DIR/alacritty/alacritty.toml"
|
||||||
|
|
||||||
if [ "$1" == "--float" ]; then
|
if [ "$1" == "--float" ]; then
|
||||||
alacritty --class 'alacritty-float,alacritty-float' --config-file "$CONFIG"
|
shift
|
||||||
|
alacritty --class 'alacritty-float,alacritty-float' --config-file "$CONFIG" $@
|
||||||
elif [ "$1" == "--full" ]; then
|
elif [ "$1" == "--full" ]; then
|
||||||
|
shift
|
||||||
alacritty --class 'Fullscreen,Fullscreen' --config-file "$CONFIG" \
|
alacritty --class 'Fullscreen,Fullscreen' --config-file "$CONFIG" \
|
||||||
-o window.startup_mode=fullscreen \
|
-o window.startup_mode=fullscreen \
|
||||||
window.padding.x=30 window.padding.y=30 \
|
window.padding.x=30 window.padding.y=30 \
|
||||||
window.opacity=0.95 font.size=14
|
window.opacity=0.95 font.size=14 $@
|
||||||
else
|
else
|
||||||
alacritty --config-file "$CONFIG"
|
alacritty --config-file "$CONFIG" $@
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
.autoenv_leave.zsh
|
.autoenv_leave.zsh
|
||||||
tags
|
tags
|
||||||
Session.vim
|
Session.vim
|
||||||
|
.exrc
|
||||||
*.rest
|
*.rest
|
||||||
cert.crt
|
cert.crt
|
||||||
cert.key
|
cert.key
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit f3bf598361b9da8753495b067772cd74fadf40b1
|
Subproject commit 3d9677192a225903529a437e6974fa97efffd675
|
||||||
14
tmux.conf
14
tmux.conf
@ -6,9 +6,9 @@ bind-key C-a send-prefix
|
|||||||
# split panes
|
# split panes
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
bind s split-window -h -p 20 -c "#{pane_current_path}"
|
# bind s split-window -h -p 20 -c "#{pane_current_path}"
|
||||||
bind g split-window -h -p 20 -c "#{pane_current_path}" -b
|
# bind g split-window -h -p 20 -c "#{pane_current_path}" -b
|
||||||
bind v split-window -v -p 30 -c "#{pane_current_path}"
|
# bind v split-window -v -p 30 -c "#{pane_current_path}"
|
||||||
|
|
||||||
# Switch to last sesions, usefull for cross-project (since i'm using a session per project, with tmux-sessionizer script)
|
# Switch to last sesions, usefull for cross-project (since i'm using a session per project, with tmux-sessionizer script)
|
||||||
bind k switch-client -l
|
bind k switch-client -l
|
||||||
@ -22,21 +22,24 @@ bind -n M-d select-pane -R
|
|||||||
# reload conf
|
# reload conf
|
||||||
bind r source-file ~/.tmux.conf; display-message "Tmux source file reloaded!"
|
bind r source-file ~/.tmux.conf; display-message "Tmux source file reloaded!"
|
||||||
|
|
||||||
|
# VI mode for keys, not sure i'm using this
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||||
|
|
||||||
|
# Color terminal, it's probably the default
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
set -ag terminal-overrides ",*:RGB"
|
set -ag terminal-overrides ",*:RGB"
|
||||||
|
|
||||||
# change color
|
# Change color if the panes are synchronized (since it can be deadly)
|
||||||
set -g pane-border-style '#{?pane_synchronized, fg=yellow, fg=black}'
|
set -g pane-border-style '#{?pane_synchronized, fg=yellow, fg=black}'
|
||||||
set -g pane-active-border-style '#{?pane_synchronized, fg=red, fg=#52862d}'
|
set -g pane-active-border-style '#{?pane_synchronized, fg=red, fg=#52862d}'
|
||||||
|
|
||||||
|
|
||||||
# status bar
|
# Status bar
|
||||||
set -g status-position top
|
set -g status-position top
|
||||||
set -g status-justify centre
|
set -g status-justify centre
|
||||||
|
# Change color if the panes are synchronized (since it can be deadly)
|
||||||
set -g status-style 'fg=#ffffff #{?pane_synchronized, bg=red, bg=default}'
|
set -g status-style 'fg=#ffffff #{?pane_synchronized, bg=red, bg=default}'
|
||||||
set -g status-left "[#{session_name}] "
|
set -g status-left "[#{session_name}] "
|
||||||
set -g status-left-length 60
|
set -g status-left-length 60
|
||||||
@ -55,6 +58,7 @@ set -g @resurrect-strategy-nvim 'session'
|
|||||||
set -g @resurrect-processes 'ssh vim nvim django-run "~manage.py"'
|
set -g @resurrect-processes 'ssh vim nvim django-run "~manage.py"'
|
||||||
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
set -g @yank_selection_mouse 'clipboard'
|
||||||
|
|
||||||
run -b '~/.tmux/plugins/tpm/tpm'
|
run -b '~/.tmux/plugins/tpm/tpm'
|
||||||
# run-shell ~/tmux-resurrect/resurrect.tmux
|
# run-shell ~/tmux-resurrect/resurrect.tmux
|
||||||
|
|||||||
@ -3,6 +3,7 @@ alias la='ls -A'
|
|||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
alias lla='ls -al'
|
alias lla='ls -al'
|
||||||
alias mux='tmuxinator'
|
alias mux='tmuxinator'
|
||||||
|
alias i="ipython"
|
||||||
|
|
||||||
alias pm='python manage.py'
|
alias pm='python manage.py'
|
||||||
alias pmt='clear && pm test'
|
alias pmt='clear && pm test'
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
bindkey "^k" up-line-or-history
|
||||||
|
bindkey "^j" up-line-or-history
|
||||||
Loading…
Reference in New Issue
Block a user