bind adjustments
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
f20affea4dbd6e43c7ad1a21b9c0d5b3a4535ead- Parents
-
c4e1acc - Tree
51b1c7a
f20affe
f20affea4dbd6e43c7ad1a21b9c0d5b3a4535eadc4e1acc
51b1c7a| Status | File | + | - |
|---|---|---|---|
| M |
hypr/config/keybinds.conf
|
17 | 14 |
| A |
hypr/scripts/jetbrains_menu.sh
|
77 | 0 |
| M |
tmux/.tmux.d/20-keys.conf
|
34 | 28 |
hypr/config/keybinds.confmodified@@ -6,18 +6,21 @@ | |||
| 6 | source = ~/.config/hypr/config/defaults.conf | 6 | source = ~/.config/hypr/config/defaults.conf |
| 7 | 7 | ||
| 8 | # https://wiki.hyprland.org/Configuring/Binds/ | 8 | # https://wiki.hyprland.org/Configuring/Binds/ |
| 9 | +bindd = $mainMod SHIFT, V, Open Clipboard manager, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy | ||
| 10 | +bindd = $mainMod SHIFT, M, Exits Hyprland by terminating the user sessions, exec, loginctl terminate-user "" | ||
| 11 | +bindd = $mainMod SHIFT, RETURN, Open terminal & attach/create tmux:main, exec, $terminal -e bash -lc 'tmux new -As main' | ||
| 12 | + | ||
| 13 | +bindd = $mainMod, SPACE, Runs your application launcher, exec, $applauncher | ||
| 14 | +bindd = $mainMod, slash, Toggles current window split mode, togglesplit, # dwindle | ||
| 15 | +bindd = $mainMod, RETURN, Opens your preferred terminal emulator ($terminal), exec, $terminal | ||
| 16 | + | ||
| 9 | bindd = $mainMod, Q, Closes (not kill) current window, killactive, | 17 | bindd = $mainMod, Q, Closes (not kill) current window, killactive, |
| 10 | bindd = $mainMod, Y, Pin current window (shows on all workspaces), pin | 18 | bindd = $mainMod, Y, Pin current window (shows on all workspaces), pin |
| 11 | bindd = $mainMod, F, Toggles current window fullscreen mode, fullscreen | 19 | bindd = $mainMod, F, Toggles current window fullscreen mode, fullscreen |
| 12 | -bindd = $mainMod, SPACE, Runs your application launcher, exec, $applauncher | ||
| 13 | -bindd = $mainMod, J, Toggles current window split mode, togglesplit, # dwindle | ||
| 14 | -bindd = $mainMod, RETURN, Opens your preferred terminal emulator ($terminal), exec, $terminal | ||
| 15 | -bindd = $mainMod SHIFT, RETURN, Open terminal & attach/create tmux:main, exec, $terminal -e bash -lc 'tmux new -As main' | ||
| 16 | bindd = $mainMod, E, Opens your preferred filemanager ($filemanager), exec, $filemanager | 20 | bindd = $mainMod, E, Opens your preferred filemanager ($filemanager), exec, $filemanager |
| 17 | bindd = $mainMod, V, Switches current window between floating and tiling mode, togglefloating, | 21 | bindd = $mainMod, V, Switches current window between floating and tiling mode, togglefloating, |
| 18 | -bindd = $mainMod SHIFT, V, Open Clipboard manager, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy | 22 | +bindd = $mainMod, C, Open new VSCode instance, exec, code --new-window |
| 19 | -bindd = $mainMod SHIFT, M, Exits Hyprland by terminating the user sessions, exec, loginctl terminate-user "" | 23 | +bindd = $mainMod, J, Launch Jetbrains wofi picker, exec, ~/.config/hypr/scripts/jetbrains_menu.sh |
| 20 | - | ||
| 21 | bindd = $mainMod, X, Toggles flow (disables flashy animations), exec, ~/.config/hypr/scripts/toggle-flow.sh | 24 | bindd = $mainMod, X, Toggles flow (disables flashy animations), exec, ~/.config/hypr/scripts/toggle-flow.sh |
| 22 | 25 | ||
| 23 | ## Layouts | 26 | ## Layouts |
@@ -165,7 +168,7 @@ bindd = $mainMod, COMMA, Scroll through workspaces decrementally, workspace, e- | |||
| 165 | bindd = $mainMod, PERIOD, Scroll through workspaces incrementally, workspace, e+1 | 168 | bindd = $mainMod, PERIOD, Scroll through workspaces incrementally, workspace, e+1 |
| 166 | 169 | ||
| 167 | # With $mainMod + scroll | 170 | # With $mainMod + scroll |
| 168 | -bindd = $mainMod, slash, Switch to the previous workspace, workspace, previous | 171 | +# bindd = $mainMod, slash, Switch to the previous workspace, workspace, previous |
| 169 | bindd = $mainMod, mouse_up, Scroll through workspaces decrementally, workspace, e-1 | 172 | bindd = $mainMod, mouse_up, Scroll through workspaces decrementally, workspace, e-1 |
| 170 | bindd = $mainMod, mouse_down, Scroll through workspaces incrementally, workspace, e+1 | 173 | bindd = $mainMod, mouse_down, Scroll through workspaces incrementally, workspace, e+1 |
| 171 | 174 | ||
tmux/.tmux.d/20-keys.confmodified@@ -52,52 +52,58 @@ bind -n "M-|" if-shell -F '#{==:#{@ui_binds},on}' \ | |||
| 52 | "split-window -v" \ | 52 | "split-window -v" \ |
| 53 | "send-keys M-\|" | 53 | "send-keys M-\|" |
| 54 | 54 | ||
| 55 | -# Close pane (confirm) | 55 | +# Kill pane with Alt+Shift+W (guarded; passes through when binds OFF) |
| 56 | -unbind -n C-S-x | 56 | +unbind -n M-W |
| 57 | -bind -n C-S-x if-shell -F '#{==:#{@ui_binds},on}' \ | 57 | +bind -n M-W if-shell -F '#{==:#{@ui_binds},on}' \ |
| 58 | "confirm-before -p 'Kill pane #P? (y/n)' kill-pane" \ | 58 | "confirm-before -p 'Kill pane #P? (y/n)' kill-pane" \ |
| 59 | - "send-keys C-x" # tmux can’t reliably synthesize C-S-x; pass through C-x | 59 | + "send-keys M-W" |
| 60 | + | ||
| 61 | +# Backup: Ctrl+Alt+w also kills the pane (guarded) | ||
| 62 | +unbind -n C-M-w | ||
| 63 | +bind -n C-M-w if-shell -F '#{==:#{@ui_binds},on}' \ | ||
| 64 | + "confirm-before -p 'Kill pane #P? (y/n)' kill-pane" \ | ||
| 65 | + "send-keys C-M-w" | ||
| 60 | 66 | ||
| 61 | ##### Pane focus ##### | 67 | ##### Pane focus ##### |
| 62 | 68 | ||
| 63 | -unbind -n C-M-S-Left | 69 | +unbind -n C-M-Left |
| 64 | -bind -n C-M-S-Left if-shell -F '#{==:#{@ui_binds},on}' \ | 70 | +bind -n C-M-Left if-shell -F '#{==:#{@ui_binds},on}' \ |
| 65 | "select-pane -L" \ | 71 | "select-pane -L" \ |
| 66 | - "send-keys C-M-S-Left" | 72 | + "send-keys C-M-Left" |
| 67 | 73 | ||
| 68 | -unbind -n C-M-S-Right | 74 | +unbind -n C-M-Right |
| 69 | -bind -n C-M-S-Right if-shell -F '#{==:#{@ui_binds},on}' \ | 75 | +bind -n C-M-Right if-shell -F '#{==:#{@ui_binds},on}' \ |
| 70 | "select-pane -R" \ | 76 | "select-pane -R" \ |
| 71 | - "send-keys C-M-S-Right" | 77 | + "send-keys C-M-Right" |
| 72 | 78 | ||
| 73 | -unbind -n C-M-S-Up | 79 | +unbind -n C-M-Up |
| 74 | -bind -n C-M-S-Up if-shell -F '#{==:#{@ui_binds},on}' \ | 80 | +bind -n C-M-Up if-shell -F '#{==:#{@ui_binds},on}' \ |
| 75 | "select-pane -U" \ | 81 | "select-pane -U" \ |
| 76 | - "send-keys C-M-S-Up" | 82 | + "send-keys C-M-Up" |
| 77 | 83 | ||
| 78 | -unbind -n C-M-S-Down | 84 | +unbind -n C-M-Down |
| 79 | -bind -n C-M-S-Down if-shell -F '#{==:#{@ui_binds},on}' \ | 85 | +bind -n C-M-Down if-shell -F '#{==:#{@ui_binds},on}' \ |
| 80 | "select-pane -D" \ | 86 | "select-pane -D" \ |
| 81 | - "send-keys C-M-S-Down" | 87 | + "send-keys C-M-Down" |
| 82 | 88 | ||
| 83 | ##### Pane resize ##### | 89 | ##### Pane resize ##### |
| 84 | 90 | ||
| 85 | -unbind -n M-S-Left | 91 | +unbind -n C-M-S-Left |
| 86 | -bind -n M-S-Left if-shell -F '#{==:#{@ui_binds},on}' \ | 92 | +bind -n C-M-S-Left if-shell -F '#{==:#{@ui_binds},on}' \ |
| 87 | "resize-pane -L 5" \ | 93 | "resize-pane -L 5" \ |
| 88 | - "send-keys M-S-Left" | 94 | + "send-keys C-M-S-Left" |
| 89 | 95 | ||
| 90 | -unbind -n M-S-Right | 96 | +unbind -n C-M-S-Right |
| 91 | -bind -n M-S-Right if-shell -F '#{==:#{@ui_binds},on}' \ | 97 | +bind -n C-M-S-Right if-shell -F '#{==:#{@ui_binds},on}' \ |
| 92 | "resize-pane -R 5" \ | 98 | "resize-pane -R 5" \ |
| 93 | - "send-keys M-S-Right" | 99 | + "send-keys C-M-S-Right" |
| 94 | 100 | ||
| 95 | -unbind -n M-S-Up | 101 | +unbind -n C-M-S-Up |
| 96 | -bind -n M-S-Up if-shell -F '#{==:#{@ui_binds},on}' \ | 102 | +bind -n C-M-S-Up if-shell -F '#{==:#{@ui_binds},on}' \ |
| 97 | "resize-pane -U 2" \ | 103 | "resize-pane -U 2" \ |
| 98 | - "send-keys M-S-Up" | 104 | + "send-keys C-M-S-Up" |
| 99 | 105 | ||
| 100 | -unbind -n M-S-Down | 106 | +unbind -n C-M-S-Down |
| 101 | -bind -n M-S-Down if-shell -F '#{==:#{@ui_binds},on}' \ | 107 | +bind -n C-M-S-Down if-shell -F '#{==:#{@ui_binds},on}' \ |
| 102 | "resize-pane -D 2" \ | 108 | "resize-pane -D 2" \ |
| 103 | - "send-keys M-S-Down" | 109 | + "send-keys C-M-S-Down" |