Add a few new key-bindings for tmux and skhd

This commit is contained in:
david 2025-04-04 16:55:39 -05:00
parent ac9d14cba4
commit bf7fce65a1
2 changed files with 14 additions and 7 deletions

View File

@ -3,12 +3,12 @@
# notes, stacks: https://github.com/koekeishiya/yabai/issues/203#issuecomment-650642142 # notes, stacks: https://github.com/koekeishiya/yabai/issues/203#issuecomment-650642142
########################################################################################## ##########################################################################################
# yabai # key bindings for yabai wm
# general idea: alt navigates (move my view); alt+shift modifies (move/change the window) # general idea: alt navigates (move my view); alt+shift modifies (move/change the window)
# switch to space (to leave SIP in place, configure these in macos system settings) # switch to space (to leave SIP in place, configure these in macos system settings)
# alt - 1 // switch to space 1 (and similar for other numbers) # alt - 1 # switch to space 1
# alt - 2 # switch to space 2 (and similar for other numbers)
# move focused window to the given space # move focused window to the given space
alt + shift - 1 : yabai -m window --space 1 --focus alt + shift - 1 : yabai -m window --space 1 --focus
@ -42,3 +42,9 @@ alt + shift - k : yabai -m window --swap \
alt + shift - j : yabai -m window --swap \ alt + shift - j : yabai -m window --swap \
$(yabai -m query --spaces --space | jq '.type' | tr -d "\"" | sed "s/stack/stack./" | sed "s/.*[^.]\$//")prev $(yabai -m query --spaces --space | jq '.type' | tr -d "\"" | sed "s/stack/stack./" | sed "s/.*[^.]\$//")prev
##########################################################################################
# key bindings for general use
alt - h : $(which skhd) -k "ctrl + shift - tab"
alt - l : $(which skhd) -k "ctrl - tab"

View File

@ -27,8 +27,9 @@ bind-key W kill-session # TODO: if i can combine this into the above when only 1
# custom find and switching for sessions using tmux-sessionizer # custom find and switching for sessions using tmux-sessionizer
unbind-key f unbind-key f
bind-key f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer" bind-key f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer"
bind-key F run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing" bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing"
bind-key H run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub" bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub"
bind-key C-l switch-client -l
# bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && $EDITOR TODO.md || $EDITOR ~/personal/dev/todo.md" bind-key C-n next-window
bind-key C-p previous-window