Add Tmux keybinding on Super + Alt + Return

This commit is contained in:
David Heinemeier Hansson
2026-02-24 07:46:15 -05:00
parent fe21bb1fad
commit 1609fd74ed
3 changed files with 49 additions and 39 deletions
+7
View File
@@ -0,0 +1,7 @@
echo "Add Tmux binding (Super+Alt+Return) to hypr/bindings.conf"
bindings_file="$HOME/.config/hypr/bindings.conf"
if [[ -f $bindings_file ]] && ! grep -qE '^bindd?\s*=\s*SUPER\s+ALT\s*,\s*RETURN' "$bindings_file"; then
sed -i '1a bindd = SUPER ALT, RETURN, Tmux, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)" tmux' "$bindings_file"
fi