config: move simple options into schema crate
This commit is contained in:
parent
902853955b
commit
b550bb1025
5 changed files with 53 additions and 42 deletions
|
|
@ -5,5 +5,7 @@
|
|||
//! generated config documentation, and compositor-side application code.
|
||||
|
||||
pub mod animations;
|
||||
pub mod options;
|
||||
|
||||
pub use animations::{AnimationCurveConfig, Animations};
|
||||
pub use options::{Libei, RepeatRate, SimpleIm, Tearing, UiDrag, Vrr, Xwayland};
|
||||
|
|
|
|||
43
jay-config-schema/src/options.rs
Normal file
43
jay-config-schema/src/options.rs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
use jay_config::{
|
||||
video::{TearingMode, VrrMode},
|
||||
xwayland::XScalingMode,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct UiDrag {
|
||||
pub enabled: Option<bool>,
|
||||
pub threshold: Option<i32>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct RepeatRate {
|
||||
pub rate: i32,
|
||||
pub delay: i32,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Vrr {
|
||||
pub mode: Option<VrrMode>,
|
||||
pub cursor_hz: Option<f64>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct SimpleIm {
|
||||
pub enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Xwayland {
|
||||
pub enabled: Option<bool>,
|
||||
pub scaling_mode: Option<XScalingMode>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Tearing {
|
||||
pub mode: Option<TearingMode>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct Libei {
|
||||
pub enable_socket: Option<bool>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue