diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-06-25 22:06:02 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-06-25 22:06:02 +0200 |
| commit | abefad64a98fc09fe1fdaa727d6cad07dcd40562 (patch) | |
| tree | 0d02fb177678e3af03642a9d36bf9741d1282365 /shell-scripts | |
| parent | ba31dd00cb93b861f4955c57a1be33a63c4efe95 (diff) | |
stuff
Diffstat (limited to 'shell-scripts')
| -rw-r--r-- | shell-scripts/set-bg | 2 | ||||
| -rw-r--r-- | shell-scripts/tmux-normal-mode | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/shell-scripts/set-bg b/shell-scripts/set-bg index ad04730..e470e88 100644 --- a/shell-scripts/set-bg +++ b/shell-scripts/set-bg @@ -13,4 +13,4 @@ else fi kak -l | parallel '<<< "colorscheme wal" kak -p {}' pgrep -x st | parallel kill -st -e tmux attach +st -e tmux attach & diff --git a/shell-scripts/tmux-normal-mode b/shell-scripts/tmux-normal-mode index 661f8af..5730017 100644 --- a/shell-scripts/tmux-normal-mode +++ b/shell-scripts/tmux-normal-mode @@ -1,3 +1,13 @@ + # Make our own copy-mode with Kakoune! + # cursor_y=$(tmux display-message -t "''${pane_id}" -p "#{cursor_y}") ;\ + # cursor_x=$(tmux display-message -t "''${pane_id}" -p "#{cursor_x}") ;\ + # pane_height=$(tmux display-message -t "''${pane_id}" -p "#{pane_height}") ;\ + # line_count="$(wc -l "$file" |awk "{print \$1}")" ;\ + # sel_line=$(( line_count - ( pane_height - cursor_y ) + 1 )) ;\ + # printf "sel = %s\n" "$line_count" >>/tmp/debug.log ;\ + # cursor="''${sel_line}.''${cursor_x},''${sel_line}.''${cursor_x}" ;\ + # printf "cursor = %s\n" "$cursor" >>/tmp/debug.log + kakoune_session="$(tmux display-message -p "#{window_name}" | sed "s/kakc@//")" dispatch_name="dispatch://$(tmux display-message -p "#{pane_start_command}")" case "${@}" in |
