Cloudef / orbment

Modular Wayland compositor
Other
246 stars 16 forks source link

how to configure `mod`? #135

Open myf opened 8 years ago

myf commented 8 years ago

I have been trying to find out where and how to add a configuration that changes the mod key to ALT_L but I cannot figure it out. It's better to leave some configuration example

Cloudef commented 8 years ago

The configuration still has some issues (mainly keybindings), and thus isn't documented well (the default ini backend anyways).

However to change prefix, create $XDG_CONFIG_HOME/orbment/orbment.ini and use contents:

[keybindings]
# Prefix is one of:
# shift, caps, ctrl, alt, mod2, mod3, logo, mod5
# The naming convention follows that of xkbcommon, I'm not sure what mod[2-5] actually binds to
prefix = logo

The best way right now to find configurable keys in orbment is to grep sources for configuration_get string. For more details on that can be found here: https://github.com/Cloudef/orbment/blob/master/plugins/configuration/configuration.rst

Cloudef commented 8 years ago

Just adding some older examples and resources. https://ptpb.pw/cAf7/ini (Sample ini) https://github.com/Cloudef/orbment/issues/89#issuecomment-136092559 (Example of input configuration)

In future the configurable keys will be exposed more conventietly (At least printed on log as first step, this is missing API for plugins which can register key and it's documentation)