From abefad64a98fc09fe1fdaa727d6cad07dcd40562 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sun, 25 Jun 2023 22:06:02 +0200 Subject: stuff --- shell-scripts/set-bg | 2 +- shell-scripts/tmux-normal-mode | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'shell-scripts') 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 -- cgit v1.2.3