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
8
jay-config-schema/src/keymap.rs
Normal file
8
jay-config-schema/src/keymap.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use jay_config::keyboard::Keymap;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum ConfigKeymap {
|
||||
Named(String),
|
||||
Literal(Keymap),
|
||||
Defined { name: String, map: Keymap },
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
pub mod animations;
|
||||
pub mod command;
|
||||
pub mod input;
|
||||
pub mod keymap;
|
||||
pub mod options;
|
||||
pub mod output;
|
||||
pub mod rules;
|
||||
|
|
@ -15,6 +16,7 @@ pub mod theme;
|
|||
pub use animations::{AnimationCurveConfig, Animations};
|
||||
pub use command::{Exec, Status};
|
||||
pub use input::InputMatch;
|
||||
pub use keymap::ConfigKeymap;
|
||||
pub use options::{
|
||||
ColorManagement, Float, FocusHistory, Libei, RepeatRate, SimpleIm, Tearing, UiDrag, Vrr,
|
||||
Xwayland,
|
||||
|
|
|
|||
|
|
@ -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