config: move keymap schema into schema crate
This commit is contained in:
parent
d9261414c2
commit
e21670f3f6
3 changed files with 14 additions and 11 deletions
|
|
@ -25,7 +25,7 @@ use {
|
|||
FallbackOutputMode, LayerDirection, SwitchEvent, Timeline, acceleration::AccelProfile,
|
||||
clickmethod::ClickMethod,
|
||||
},
|
||||
keyboard::{Keymap, ModifiedKeySym, mods::Modifiers, syms::KeySym},
|
||||
keyboard::{ModifiedKeySym, mods::Modifiers, syms::KeySym},
|
||||
logging::LogLevel,
|
||||
video::GfxApi,
|
||||
window::TileState,
|
||||
|
|
@ -43,9 +43,9 @@ use {
|
|||
|
||||
pub use jay_config_schema::{
|
||||
AnimationCurveConfig, Animations, ClientMatch, ColorManagement, ConfigConnector,
|
||||
ConfigDrmDevice, ConnectorMatch, DrmDeviceMatch, Exec, Float, FocusHistory, GenericMatch,
|
||||
InputMatch, Libei, MatchExactly, Mode, Output, OutputMatch, RepeatRate, SimpleIm, Status,
|
||||
Tearing, Theme, UiDrag, Vrr, WindowMatch, Xwayland,
|
||||
ConfigDrmDevice, ConfigKeymap, ConnectorMatch, DrmDeviceMatch, Exec, Float, FocusHistory,
|
||||
GenericMatch, InputMatch, Libei, MatchExactly, Mode, Output, OutputMatch, RepeatRate,
|
||||
SimpleIm, Status, Tearing, Theme, UiDrag, Vrr, WindowMatch, Xwayland,
|
||||
};
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
|
|
@ -243,13 +243,6 @@ pub struct Input {
|
|||
pub calibration_matrix: Option<[[f32; 3]; 2]>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum ConfigKeymap {
|
||||
Named(String),
|
||||
Literal(Keymap),
|
||||
Defined { name: String, map: Keymap },
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Shortcut {
|
||||
pub mask: Modifiers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue