aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar pinoinha <pinoinha@disroot.org> 2024-02-01 17:13:52 +0000
committerGravatar pinoinha <pinoinha@disroot.org> 2024-02-01 17:13:52 +0000
commit7574b6cde92d36b989e03ec5ea922fadc70682bc (patch)
tree6d70bb3488fe5e8fccb9da26a210ad7a94ea57c5
parent0b32095dcddce63bab6433bccb50a8095bd97daf (diff)
configuração do river e do tmux
-rw-r--r--.gitignore2
-rwxr-xr-xriver/init5
-rw-r--r--tmux/tmux.conf31
3 files changed, 25 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore
index cf053b1..07eb676 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,5 @@ sdorfehs/history
librewolf
helix/runtime
+
+tmux/plugins/*
diff --git a/river/init b/river/init
index c6fac57..34d8195 100755
--- a/river/init
+++ b/river/init
@@ -4,8 +4,6 @@
riverctl spawn "kanshi"
riverctl spawn "waybar"
riverctl spawn "mako"
-#riverctl spawn "$HOME/bin/akko_config"
-#riverctl spawn "$HOME/bin/idea_config"
riverctl spawn "$HOME/bin/,wallpaper"
riverctl spawn "wl-paste --type text --watch cliphist store"
riverctl spawn "wl-paste --type image --watch cliphist store"
@@ -86,11 +84,10 @@ riverctl map normal Super+Alt+Shift L resize horizontal 100
riverctl map-pointer normal Super BTN_LEFT move-view
riverctl map-pointer normal Super BTN_RIGHT resize-view
-
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
# tags
-for i in $(seq 1 5)
+for i in $(seq 1 4)
do
tags=$((1 << ($i - 1)))
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index dbeb96f..5ce5a6c 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -18,6 +18,9 @@ bind Space copy-mode
bind -T copy-mode Escape send-keys -X cancel
bind -T copy-mode C-g send-keys -X cancel
+bind -T copy-mode n send-keys -X search-again
+bind -T copy-mode N send-keys -X search-reverse
+
bind -T copy-mode Up send-keys -X cursor-up
bind -T copy-mode C-p send-keys -X cursor-up
bind -T copy-mode Down send-keys -X cursor-down
@@ -37,17 +40,23 @@ bind -n MouseDrag1Pane copy-mode -M
bind -T copy-mode MouseDrag1Pane send -X begin-selection
bind -T copy-mode MouseDragEnd1Pane send -X copy-selection-no-clear
+bind k kill-pane
bind C-k kill-pane
+bind Tab last-pane
bind C-Tab last-pane
-bind C-v split-pane -v
-bind C-h split-pane -h
+bind v split-pane -h
+bind C-v split-pane -h
+bind h split-pane -v
+bind C-h split-pane -v
+bind o select-pane -t :.+
bind C-o select-pane -t :.+
bind C-d detach-client
+bind d detach-client
bind C-S-k kill-window
-bind C-S-Tab last-window
-bind C-c new-window
+bind C-Tab last-window
+bind n new-window
bind C-p previous-window
bind C-n next-window
bind C-S-p swap-window -t -1
@@ -76,10 +85,10 @@ set -g status-interval 5
# session name, window index, pane index on the left
set -g status-left-length 40
-set -g status-left "#[fg=blue]#S: #[fg=yellow]#I #[fg=green]#P"
+set -g status-left "#[fg=blue]#S: #[fg=green]#P"
# hostname and time on the right side
-set -g status-right "#[fg=cyan]| #[fg=green]#h #[fg=blue]%H:%M"
+set -g status-right "#[fg=cyan]| #[fg=green]#h #[fg=blue]%H:%M #{tmux_mode_indicator}"
# tmux starts on non-login shells
set -g default-command "${SHELL}"
@@ -93,8 +102,7 @@ set -g update-environment 'DBUS_SESSION_BUS_ADDRESS'
# truecolor
set -sa terminal-features ",foot*:RGB"
-new -s 'padrao'
-new-window -n mus cmus
+new -s 'padrao' -n mus cmus
new-window -n rss newsboat
new-window -n mail meli
@@ -104,11 +112,16 @@ new -s 'shell'
set -g @plugin 'tmux-plugins/tpm'
-# fzf-url
set -g @plugin 'wfxr/tmux-fzf-url'
set -g @fzf-url-history-limit '5000'
set -g @fzf-url-fzf-options '-w 50% -h 50% --multi -0 --no-preview --no-border'
+set -g @plugin 'MunifTanjim/tmux-mode-indicator'
+
+set -g @plugin 'tmux-plugins/tmux-copycat'
+
+set -g @plugin 'alexwforsythe/tmux-which-key'
+
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'