Add o.rebind for replacing Hyprland keybindings

This commit is contained in:
Ryan Hughes committed 2026-09-06 16:01:50 -04:00
1 parent a9eaf7978e
commit 1d466c4003
6 files changed
+40 -16

No files matched your search

+4 -3
View File
@@ -66,10 +66,11 @@ Look, this is your computer. You can do whatever you want with it, but I would a
You can change just about everything that way, like the default keybindings. Just edit `~/.config/hypr/bindings.lua` to, say, replace [Obsidian](https://obsidian.md/) with [Joplin](https://joplinapp.org/) (install with `omarchy-pkg-add joplin-bin`):
```lua
o.rebind("SUPER + SHIFT + O", "Joplin", "joplin-desktop")
```
hl.unbind("SUPER + SHIFT + O")
o.bind("SUPER + SHIFT + O", "Joplin", "joplin-desktop")
```
`o.rebind` removes the existing binding before adding its replacement. It takes the same arguments as `o.bind`, including launch helpers and binding options. Use `o.bind` to add a binding, or `hl.unbind` to remove one without replacing it.
If you insist on hacking on the internal Omarchy files, switch to the dev channel via _Update > Channel > Dev_. That links Omarchy to a git checkout of the source code in `~/omarchy`, which you're free to change to your heart's content. Ain't nobody here to tell you what to do!