all: split reusable components into workspace crates
This commit is contained in:
parent
2a079ed800
commit
657e7ce2f7
225 changed files with 7422 additions and 17602 deletions
|
|
@ -24,7 +24,6 @@ use {
|
|||
ahash::AHashMap,
|
||||
jay_config::{
|
||||
Direction, Workspace,
|
||||
client::ClientCapabilities,
|
||||
input::{
|
||||
FallbackOutputMode, LayerDirection, SwitchEvent, Timeline, acceleration::AccelProfile,
|
||||
clickmethod::ClickMethod,
|
||||
|
|
@ -49,6 +48,8 @@ use {
|
|||
toml::toml_parser,
|
||||
};
|
||||
|
||||
pub use jay_config_schema::{AnimationCurveConfig, Animations};
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub enum SimpleCommand {
|
||||
Close,
|
||||
|
|
@ -58,7 +59,6 @@ pub enum SimpleCommand {
|
|||
Move(Direction),
|
||||
None,
|
||||
Quit,
|
||||
ReloadConfigSo,
|
||||
ReloadConfigToml,
|
||||
ToggleFloating,
|
||||
SetFloating(bool),
|
||||
|
|
@ -266,20 +266,6 @@ pub struct UiDrag {
|
|||
pub threshold: Option<i32>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct Animations {
|
||||
pub enabled: Option<bool>,
|
||||
pub duration_ms: Option<u32>,
|
||||
pub style: Option<String>,
|
||||
pub curve: Option<AnimationCurveConfig>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum AnimationCurveConfig {
|
||||
Preset(String),
|
||||
CubicBezier([f32; 4]),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum OutputMatch {
|
||||
Any(Vec<OutputMatch>),
|
||||
|
|
@ -313,8 +299,6 @@ pub struct ClientRule {
|
|||
pub match_: ClientMatch,
|
||||
pub action: Option<Action>,
|
||||
pub latch: Option<Action>,
|
||||
pub capabilities: Option<ClientCapabilities>,
|
||||
pub bounding_capabilities: Option<ClientCapabilities>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Clone)]
|
||||
|
|
@ -334,8 +318,6 @@ pub struct ClientMatch {
|
|||
pub comm_regex: Option<String>,
|
||||
pub exe: Option<String>,
|
||||
pub exe_regex: Option<String>,
|
||||
pub tag: Option<String>,
|
||||
pub tag_regex: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
@ -476,8 +458,6 @@ pub struct Exec {
|
|||
pub prog: String,
|
||||
pub args: Vec<String>,
|
||||
pub envs: Vec<(String, String)>,
|
||||
pub privileged: bool,
|
||||
pub tag: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue