inclement / vivarium

A dynamic tiling Wayland compositor using wlroots
GNU General Public License v3.0
367 stars 13 forks source link

xmodmap with inputs #108

Closed mhdzli closed 2 years ago

mhdzli commented 2 years ago

In Swaywm keyboard configuration for using multiple layouts or other custom keymap options is available with a custom keymap file or using input { type:keyborad { <KEYBOARD_OPTIONS> } in Swaywm config file. Is there any implementation for this in vivarium

inclement commented 2 years ago

You can set the xkb config options via the config file here. The syntax/options should match sway, as they're ultimately passed to the backend in the same way.

I'm not sure if this supports everything that sway does, but you can definitely use a custom keymap file.

mhdzli commented 2 years ago

Thank you. Sorry my bad. Don't know how I missed that.

mhdzli commented 2 years ago

Sorry but is there any way to get the current keyboard layout in vivarium?

inclement commented 2 years ago

I don't think there is a way to get the current layout as it stands - Vivarium definitely doesn't specifically provide one, but I'm not sure if there's an independent way to query via any backend library.

What kind of thing are you wanting to do, it would help to think through how this could be added?