diff options
author | eug-vs <eug-vs@keemail.me> | 2020-12-10 22:01:48 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-01-06 21:28:40 +0300 |
commit | 78ba9eae5a122199d9682707b5ac590a4a627c83 (patch) | |
tree | 0e1c8b1f1b0aecf78d5ae3660abf9750d1544c80 | |
parent | c4ae2519dc8238390624af05602c364b39b5b77d (diff) | |
download | dotfiles-78ba9eae5a122199d9682707b5ac590a4a627c83.tar.gz |
chore: cleanup configs
-rw-r--r-- | .config/i3/config | 8 | ||||
-rw-r--r-- | .config/nvim/vim-plug/plugins.vim | 1 | ||||
-rwxr-xr-x | .local/bin/i3_tmux_vim_focus | bin | 17272 -> 17272 bytes | |||
-rwxr-xr-x | .local/bin/i3_tmux_vim_focus.c | 5 |
4 files changed, 5 insertions, 9 deletions
diff --git a/.config/i3/config b/.config/i3/config index 861f27b..25cf82c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -43,10 +43,10 @@ bindsym $mod+Shift+q kill bindsym $mod+d exec rofi -show combi -theme gruvbox-dark-soft # change focus -bindsym $mod+h exec "xdotool keyup Super h && i3_tmux_vim_focus left && xdotool keydown Super" -bindsym $mod+j exec "xdotool keyup Super j && i3_tmux_vim_focus down && xdotool keydown Super" -bindsym $mod+k exec "xdotool keyup Super k && i3_tmux_vim_focus up && xdotool keydown Super" -bindsym $mod+l exec "xdotool keyup Super l && i3_tmux_vim_focus right && xdotool keydown Super" +bindsym $mod+h exec --no-startup-id "xdotool keyup Super h && i3_tmux_vim_focus left && xdotool keydown Super" +bindsym $mod+j exec --no-startup-id "xdotool keyup Super j && i3_tmux_vim_focus down && xdotool keydown Super" +bindsym $mod+k exec --no-startup-id "xdotool keyup Super k && i3_tmux_vim_focus up && xdotool keydown Super" +bindsym $mod+l exec --no-startup-id "xdotool keyup Super l && i3_tmux_vim_focus right && xdotool keydown Super" # alternatively, you can use the cursor keys: bindsym $mod+Left focus left diff --git a/.config/nvim/vim-plug/plugins.vim b/.config/nvim/vim-plug/plugins.vim index 51de831..24b4669 100644 --- a/.config/nvim/vim-plug/plugins.vim +++ b/.config/nvim/vim-plug/plugins.vim @@ -6,7 +6,6 @@ call plug#begin('~/.config/nvim/autoload/plugged') Plug 'kristijanhusak/defx-icons' Plug 't9md/vim-choosewin' " Tmux navigator - " Plug 'christoomey/vim-tmux-navigator' Plug 'fogine/vim-i3wm-tmux-navigator' " Color scheme Plug 'morhetz/gruvbox' diff --git a/.local/bin/i3_tmux_vim_focus b/.local/bin/i3_tmux_vim_focus Binary files differindex bf156f9..d62a881 100755 --- a/.local/bin/i3_tmux_vim_focus +++ b/.local/bin/i3_tmux_vim_focus diff --git a/.local/bin/i3_tmux_vim_focus.c b/.local/bin/i3_tmux_vim_focus.c index 1429e3a..8f0d075 100755 --- a/.local/bin/i3_tmux_vim_focus.c +++ b/.local/bin/i3_tmux_vim_focus.c @@ -36,8 +36,7 @@ int main(int argc, char *argv[]) { xdo_get_active_window(xdo, &window_ret); xdo_get_window_name(xdo, window_ret, &name, &name_len, &name_type); - puts(name); - if(strstr(name, "VIM") || strstr(name, "vim") && !strstr(name, "i3_tmux_vim_focus")) + if(strstr(name, "VIM") || strstr(name, "vim")) { strcpy(cmd, "Ctrl+c+Ctrl+"); @@ -46,8 +45,6 @@ int main(int argc, char *argv[]) { (argv[1][0] == 'd')? "j" : (argv[1][0] == 'u')? "k" : "l" ); - puts(cmd); - xdo_send_keysequence_window(xdo, window_ret, cmd, 0); } else if(strstr(name, "tmux")) |