From d4f85a678662e7f6fb4c905b7303c37a9c1abbe8 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Thu, 2 Oct 2025 17:02:34 -0400 Subject: [PATCH] feat: Updates tmux bindings to navigate windows to use either prefix+h|l or h|l, switches window keybind prefix to use alt in hyprland. --- env/.config/hypr/keybinds.conf | 2 +- env/.tmux.conf | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/env/.config/hypr/keybinds.conf b/env/.config/hypr/keybinds.conf index 45f4db4..ea0bc92 100644 --- a/env/.config/hypr/keybinds.conf +++ b/env/.config/hypr/keybinds.conf @@ -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/ diff --git a/env/.tmux.conf b/env/.tmux.conf index 217961d..3d6eb18 100755 --- a/env/.tmux.conf +++ b/env/.tmux.conf @@ -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'