update
This commit is contained in:
parent
4481e4ceaf
commit
1110cf573c
5 changed files with 15 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
Some(([
|
Some(([
|
||||||
"com.system76.CosmicAppletWorkspaces",
|
"com.system76.CosmicAppletWorkspaces",
|
||||||
|
"com.system76.CosmicAppletMinimize",
|
||||||
], [
|
], [
|
||||||
"com.system76.CosmicAppletStatusArea",
|
"com.system76.CosmicAppletStatusArea",
|
||||||
"com.system76.CosmicAppletTiling",
|
"com.system76.CosmicAppletTiling",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
"panel"
|
"panel_applets"
|
||||||
|
|
@ -29,6 +29,7 @@ switch() {
|
||||||
|
|
||||||
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |
|
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |
|
||||||
sed '/^popup/d' |
|
sed '/^popup/d' |
|
||||||
|
sed '/^scratch/d' |
|
||||||
sed '/^$/d' |
|
sed '/^$/d' |
|
||||||
fzf --reverse --header 'Switch Session' --preview 'tmux capture-pane -pt {}' \
|
fzf --reverse --header 'Switch Session' --preview 'tmux capture-pane -pt {}' \
|
||||||
--bind 'enter:execute(tmux switch-client -t {})+accept'
|
--bind 'enter:execute(tmux switch-client -t {})+accept'
|
||||||
|
|
@ -39,6 +40,8 @@ delete() {
|
||||||
|
|
||||||
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |
|
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |
|
||||||
sed '/^popup/d' |
|
sed '/^popup/d' |
|
||||||
|
sed '/^scratch/d' |
|
||||||
|
sed '/^general/d' |
|
||||||
sed '/^$/d' |
|
sed '/^$/d' |
|
||||||
fzf --reverse --header 'Delete Session' --preview 'tmux capture-pane -pt {}' \
|
fzf --reverse --header 'Delete Session' --preview 'tmux capture-pane -pt {}' \
|
||||||
--bind 'enter:execute(tmux kill-session -t {})+accept'
|
--bind 'enter:execute(tmux kill-session -t {})+accept'
|
||||||
|
|
|
||||||
|
|
@ -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 C-v send-keys -X rectangle-toggle
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel "xsel -i --clipboard"
|
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 -v -c "#{pane_current_path}"
|
||||||
#bind % split-window -h -c "#{pane_current_path}"
|
#bind % split-window -h -c "#{pane_current_path}"
|
||||||
bind c new-window -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 k display-popup -E -w 80% -h 75% "k9s"
|
||||||
bind f display-popup -E -w 80% -h 75% "yazi"
|
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
|
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'
|
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'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
|
||||||
1
install.sh
Normal file
1
install.sh
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
stow --adopt .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue