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
|
|
@ -44,8 +44,8 @@ use {
|
|||
|
||||
pub use jay_config_schema::{
|
||||
AnimationCurveConfig, Animations, ColorManagement, ConfigConnector, ConfigDrmDevice,
|
||||
ConnectorMatch, DrmDeviceMatch, Float, FocusHistory, Libei, Mode, Output, OutputMatch,
|
||||
RepeatRate, SimpleIm, Tearing, Theme, UiDrag, Vrr, Xwayland,
|
||||
ConnectorMatch, DrmDeviceMatch, Float, FocusHistory, InputMatch, Libei, Mode, Output,
|
||||
OutputMatch, RepeatRate, SimpleIm, Tearing, Theme, UiDrag, Vrr, Xwayland,
|
||||
};
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
|
|
@ -291,24 +291,6 @@ pub struct WindowMatch {
|
|||
pub content_types: Option<ContentType>,
|
||||
}
|
||||
|
||||
#[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>,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Input {
|
||||
pub tag: Option<String>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue