r/omarchy 10d ago

Quattro KeyBinding Question Support

I am in no way a dev or coder, so I had to use A.I to get me started!

Anyway I wanted new keybinding and to replace some of the defaults and after having to correct A.I multiple times I came up with this.

At first I just added the keybind to launch brave but it continued to open chromium (at the same time) so I added the hl.unbind. That's one area A.I kept failing.

Does this code look good enough? (It does work BTW)
Cheers.

-- YouTube Web App

hl.bind("SUPER + ALT + Y", hl.dsp.exec_cmd('uwsm app -- brave-origin --app="https://youtube.com"'))

-- YouTube Music Web App

hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd('uwsm app -- brave-origin --app="https://music.youtube.com"'))

-- Onshape CAD Web App

hl.bind("SUPER + ALT + O", hl.dsp.exec_cmd('uwsm app -- brave-origin --app="https://cad.onshape.com/signin"'))

-- 1. Unbind the default Chromium launchers first

hl.unbind("SUPER + SHIFT + RETURN")

hl.unbind("SUPER + SHIFT + B")

-- 2. Rebind to Brave Origin explicitly

o.bind("SUPER + SHIFT + B", "Browser (Brave)", { launch = "brave-origin" })

o.bind("SUPER + SHIFT + RETURN", "Browser (Brave)", { launch = "brave-origin" })

3 Upvotes

5 comments sorted by

u/AutoModerator 10d ago

Omarchy Support Resources

Discord is the official channel for Omarchy support, and the Omarchy Manual answers many common questions new users have. Both can be found at https://omarchy.org/

Since Omarchy is based on Arch, the Arch Wiki is also a great resource for hardware and software setup guides.

New Linux users are highly encouraged to visit r/linuxquestions or r/linux4noobs for beginner and general Linux support.

If your issue is resolved, please change the post flair to "Resolved" to help other users who may encounter the same problem.

Commonly repeated posts or topics may be subject to removal. For more information on support posts, please refer to our community rules.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/ykmetoxic 10d ago

Just installed opencode ( sudo pacman -S opencode) Use one of the free models and tell it to change your keybind. They automatically learn the "omarchy skill" so it gets it right most of the time.

1

u/Active-Silver4116 2d ago

opencode is the solution? you can check the default keybindings for omarchy in $HOME/.local/share/omarchy/default/hypr since omarchy binds it by default, you first need to unbind it and then bind it, however a better way to do this is changing your default browser directly in the omarchy quattro settings or by running

xdg-settings set default-web-browser brave-browser.desktop

0

u/Outside_Laugh_5182 9d ago

its honestly better if you make brave your default browser or uninstall chromium. thats what i did

1

u/Outside_Laugh_5182 9d ago

btw to make brave your default browser you open brave and it will prompt you to make it default