diff --git a/.config/cosmic/com.system76.CosmicPanel.Panel/v1/plugins_wings b/.config/cosmic/com.system76.CosmicPanel.Panel/v1/plugins_wings index 006932a..64e2be2 100644 --- a/.config/cosmic/com.system76.CosmicPanel.Panel/v1/plugins_wings +++ b/.config/cosmic/com.system76.CosmicPanel.Panel/v1/plugins_wings @@ -1,5 +1,6 @@ Some(([ "com.system76.CosmicAppletWorkspaces", + "com.system76.CosmicAppletMinimize", ], [ "com.system76.CosmicAppletStatusArea", "com.system76.CosmicAppletTiling", diff --git a/.config/cosmic/com.system76.CosmicSettings/v1/active-page b/.config/cosmic/com.system76.CosmicSettings/v1/active-page index ca2db26..5a11790 100644 --- a/.config/cosmic/com.system76.CosmicSettings/v1/active-page +++ b/.config/cosmic/com.system76.CosmicSettings/v1/active-page @@ -1 +1 @@ -"panel" \ No newline at end of file +"panel_applets" \ No newline at end of file diff --git a/.config/scripts/sessions.sh b/.config/scripts/sessions.sh index 2a9ab01..928ef36 100755 --- a/.config/scripts/sessions.sh +++ b/.config/scripts/sessions.sh @@ -29,6 +29,7 @@ switch() { tmux list-sessions -F '#{?session_attached,,#{session_name}}' | sed '/^popup/d' | + sed '/^scratch/d' | sed '/^$/d' | fzf --reverse --header 'Switch Session' --preview 'tmux capture-pane -pt {}' \ --bind 'enter:execute(tmux switch-client -t {})+accept' @@ -39,6 +40,8 @@ delete() { tmux list-sessions -F '#{?session_attached,,#{session_name}}' | sed '/^popup/d' | + sed '/^scratch/d' | + sed '/^general/d' | sed '/^$/d' | fzf --reverse --header 'Delete Session' --preview 'tmux capture-pane -pt {}' \ --bind 'enter:execute(tmux kill-session -t {})+accept' diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 7b79ccd..2c8b5a1 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -80,6 +80,8 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel "xsel -i --clipboard" +unbind '"' +unbind % #bind '"' split-window -v -c "#{pane_current_path}" #bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" @@ -93,10 +95,16 @@ bind g display-popup -E -w 80% -h 75% "lazygit" bind k display-popup -E -w 80% -h 75% "k9s" bind f display-popup -E -w 80% -h 75% "yazi" -bind t if-shell -F '#{==:#{session_name},popup}' { +bind T if-shell -F '#{==:#{session_name},popup}' { detach-client } { display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t popup || tmux new-session -s popup' } +bind S if-shell -F '#{==:#{session_name},scratch}' { + detach-client +} { + display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t scratch || tmux new-session -s scratch nvim new' +} + run '~/.tmux/plugins/tpm/tpm' diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..e32d83b --- /dev/null +++ b/install.sh @@ -0,0 +1 @@ +stow --adopt .