feat: Updates tmux bindings to navigate windows to use either prefix+h|l or <c-alt>h|l, switches window keybind prefix to use alt in hyprland.

This commit is contained in:
2025-10-02 17:02:34 -04:00
parent 1ee8cad635
commit d4f85a6786
2 changed files with 8 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # "Command/Windows" key as main modifier
# TODO: Use 'ALT' as window mod, need to change some tmux keybinds to do so.
$windowMod = CTRL ALT # Control + Option for window controls.
$windowMod = ALT # Control + Option for window controls.
$HYPER = ALT SHIFT SUPER CTRL
# See https://wiki.hyprland.org/Configuring/Keywords/

10
env/.tmux.conf vendored
View File

@@ -69,9 +69,10 @@ bind-key -r K kill-pane
# Use Shift-arrow keys to navigate windows.
bind -n S-Left previous-window
bind -n S-Right next-window
bind -n M-h previous-window
bind -n M-l next-window
bind C-l send-keys 'C-l'
bind h previous-window
bind l next-window
bind -n C-M-h previous-window
bind -n C-M-l next-window
bind f run-shell "tmux display-popup -E -w 80% -h 80% $SCRIPTS/tmux-sessionator"
bind-key -r C run-shell -b "~/.local/share/scripts/tmux-sessionator ~/.dotfiles"
@@ -155,5 +156,8 @@ set -gF window-status-separator "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}]│"
set -g window-status-current-format " #I#{?#{!=:#{window_name},Window},: #W,} "
set -g window-status-current-style "bg=#{@thm_peach},fg=#{@thm_bg},bold"
unbind -n h
unbind -n l
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'