feat: Added tmux-float to toggle the floating terminal

This commit is contained in:
uttarayan21
2024-12-24 18:37:12 +05:30
parent 29ef167516
commit 328248536e
5 changed files with 143 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
if [ "$(tmux display-message -p -F "#{session_name}")" = "scratch" ];then
tmux detach-client
else
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux new -A -s scratch"
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux new -A -s scratch -d -c ''$(pwd)"
fi
'';
in {
@@ -77,7 +77,7 @@ in {
bind k select-pane -U
bind l select-pane -R
bind-key -n C-\\ run-shell ${scratchpad}
bind-key -n C-\\ run-shell "${pkgs.tmux-float}/bin/tmux-float toggle"
bind o set status
bind C-n next-window