Expand description
Configuration types for the plugin configure() hook.
Return a Configuration from your crate::plugin::Plugin::configure implementation
to override compositor configuration values on every config reload. Any field
left as None is ignored; the compositor keeps its own value for that field.
The plugins and includes keys cannot be set by plugins.
§Example
ⓘ
use miracle_plugin::config::{BindingAction, Configuration, CustomKeyAction, Gaps, Key, Modifier};
fn configure(&mut self) -> Option<Configuration> {
Some(Configuration {
primary_modifier: Some(Modifier::Meta),
custom_key_actions: Some(vec![CustomKeyAction {
action: BindingAction::Down,
modifiers: vec![Modifier::Primary],
key: Key::new("Return"),
command: "kitty".to_string(),
}]),
inner_gaps: Some(Gaps { x: 5, y: 5 }),
..Default::default()
})
}Structs§
- Animation
Definition - An animation definition for one animatable event.
- Border
Config - Window border appearance.
- Built
InAnimation Part - A single built-in animation (one phase of an easing sequence).
- Built
InKey Command Override - Override the key binding for a built-in compositor action.
- Configuration
- Configuration overrides that a plugin may return from [
Plugin::configure]. - Cursor
Configuration - Cursor appearance and focus behaviour.
- Custom
KeyAction - A custom key binding that runs a shell command.
- Drag
AndDrop Configuration - Drag-and-drop behaviour.
- Environment
Variable - An environment variable to set in the compositor’s environment.
- Gaps
- Gaps configuration. Both
x(left/right) andy(top/bottom) are in pixels. - Hover
Click Configuration - Hover-click (dwell click) configuration.
- Key
- An XKB keysym name for use in configuration bindings.
- Keyboard
Configuration - Keyboard repeat and layout configuration.
- Keymap
Configuration - Keymap (keyboard layout) configuration.
- Magnifier
Configuration - Screen magnifier configuration.
- Mouse
Configuration - Mouse pointer configuration.
- Output
Filter Configuration - Output (display) filter shader.
- Simulated
Secondary Click Configuration - Simulated secondary (right) click via long-press.
- Slow
Keys Configuration - Slow keys (accessibility) configuration.
- Startup
App - An application to start on compositor launch.
- Sticky
Keys Configuration - Sticky keys (accessibility) configuration.
- Touchpad
Configuration - Touchpad configuration.
- Workspace
Config - Workspace configuration entry.
Enums§
- Animation
Event - The compositor event that an animation definition applies to.
- Animation
Kind - Whether an animation is driven by a built-in effect or a plugin callback.
- Animation
Part Type - Built-in animation visual effect for one phase of an animation sequence.
- Binding
Action - The keyboard event phase that triggers a key binding.
- Cursor
Focus Mode - Whether focus follows the pointer or requires a click.
- Easing
Function - Easing function for animation timing.
- Handedness
- Mouse button handedness.
- Modifier
- A keyboard modifier key for use in configuration bindings.
- Pointer
Acceleration - Pointer acceleration profile.
- Touchpad
Click Mode - Touchpad click emulation mode.
- Touchpad
Scroll Mode - Touchpad scroll method.