config: move input match schema into schema crate
This commit is contained in:
parent
fb65585bfa
commit
81a1a865a1
4 changed files with 33 additions and 21 deletions
17
jay-config-schema/src/input.rs
Normal file
17
jay-config-schema/src/input.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#[derive(Debug, Clone)]
|
||||
pub enum InputMatch {
|
||||
Any(Vec<InputMatch>),
|
||||
All {
|
||||
tag: Option<String>,
|
||||
name: Option<String>,
|
||||
syspath: Option<String>,
|
||||
devnode: Option<String>,
|
||||
is_keyboard: Option<bool>,
|
||||
is_pointer: Option<bool>,
|
||||
is_touch: Option<bool>,
|
||||
is_tablet_tool: Option<bool>,
|
||||
is_tablet_pad: Option<bool>,
|
||||
is_gesture: Option<bool>,
|
||||
is_switch: Option<bool>,
|
||||
},
|
||||
}
|
||||
|
|
@ -5,11 +5,13 @@
|
|||
//! generated config documentation, and compositor-side application code.
|
||||
|
||||
pub mod animations;
|
||||
pub mod input;
|
||||
pub mod options;
|
||||
pub mod output;
|
||||
pub mod theme;
|
||||
|
||||
pub use animations::{AnimationCurveConfig, Animations};
|
||||
pub use input::InputMatch;
|
||||
pub use options::{
|
||||
ColorManagement, Float, FocusHistory, Libei, RepeatRate, SimpleIm, Tearing, UiDrag, Vrr,
|
||||
Xwayland,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue