Add o.rebind for replacing Hyprland keybindings
This commit is contained in:
6 files changed
+40
-16
No files matched your search
@@ -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!
|
||||
|
||||
|
||||
Reference in new issue
Block a user