fix sh path and cleanup

This commit is contained in:
BZ 2020-03-22 23:37:40 +01:00
parent 2689953579
commit c9de6a1055
2 changed files with 3 additions and 7 deletions

View File

@ -112,11 +112,7 @@ function module.focus(dir)
root.fake_input("key_press", "Super_L") root.fake_input("key_press", "Super_L")
return return
else else
if collision then awful.client.focus.global_bydirection(dir)
collision.focus(dir, c)
else
awful.client.focus.global_bydirection(dir)
end
end end
end end
end end

View File

@ -89,9 +89,9 @@ function! s:TmuxAwareNavigate(direction)
let dir = s:CmdToDir(a:direction) let dir = s:CmdToDir(a:direction)
let cmd = 'sh ~/.bin/tmux_smart.sh '. dir let cmd = 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh '. dir
silent call system(cmd) silent call system(cmd)
let output= system("tmux run-shell 'tmux rename-window #{pane_current_command}'") " let output= system("tmux run-shell 'tmux rename-window #{pane_current_command}'")
"if tmux_pane == s:TmuxGetActivePaneId() "if tmux_pane == s:TmuxGetActivePaneId()
"call s:SystemWindowNavigate(a:direction) "call s:SystemWindowNavigate(a:direction)