config: move simple command schema into schema crate
This commit is contained in:
parent
e21670f3f6
commit
36b5a831fc
3 changed files with 60 additions and 55 deletions
56
jay-config-schema/src/action.rs
Normal file
56
jay-config-schema/src/action.rs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
use jay_config::{
|
||||
Direction,
|
||||
input::{LayerDirection, Timeline},
|
||||
};
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub enum SimpleCommand {
|
||||
Close,
|
||||
DisablePointerConstraint,
|
||||
Focus(Direction),
|
||||
FocusParent,
|
||||
Move(Direction),
|
||||
None,
|
||||
Quit,
|
||||
ReloadConfigToml,
|
||||
ToggleFloating,
|
||||
SetFloating(bool),
|
||||
ToggleFullscreen,
|
||||
SetFullscreen(bool),
|
||||
Forward(bool),
|
||||
EnableWindowManagement(bool),
|
||||
SetFloatAboveFullscreen(bool),
|
||||
ToggleFloatAboveFullscreen,
|
||||
SetFloatPinned(bool),
|
||||
ToggleFloatPinned,
|
||||
KillClient,
|
||||
ShowBar(bool),
|
||||
ToggleBar,
|
||||
ShowTitles(bool),
|
||||
ToggleTitles,
|
||||
FloatTitles(bool),
|
||||
ToggleFloatTitles,
|
||||
FocusHistory(Timeline),
|
||||
FocusLayerRel(LayerDirection),
|
||||
FocusTiles,
|
||||
ToggleFocusFloatTiled,
|
||||
CreateMark,
|
||||
JumpToMark,
|
||||
PopMode(bool),
|
||||
EnableSimpleIm(bool),
|
||||
ToggleSimpleImEnabled,
|
||||
ReloadSimpleIm,
|
||||
EnableUnicodeInput,
|
||||
WarpMouseToFocus,
|
||||
ToggleTab,
|
||||
MakeGroupH,
|
||||
MakeGroupV,
|
||||
MakeGroupTab,
|
||||
ChangeGroupOpposite,
|
||||
Equalize,
|
||||
EqualizeRecursive,
|
||||
MoveTabLeft,
|
||||
MoveTabRight,
|
||||
SetAutotile(bool),
|
||||
ToggleAutotile,
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
//! policy, and docs metadata that need to be consumed by TOML parsing,
|
||||
//! generated config documentation, and compositor-side application code.
|
||||
|
||||
pub mod action;
|
||||
pub mod animations;
|
||||
pub mod command;
|
||||
pub mod input;
|
||||
|
|
@ -13,6 +14,7 @@ pub mod output;
|
|||
pub mod rules;
|
||||
pub mod theme;
|
||||
|
||||
pub use action::SimpleCommand;
|
||||
pub use animations::{AnimationCurveConfig, Animations};
|
||||
pub use command::{Exec, Status};
|
||||
pub use input::InputMatch;
|
||||
|
|
|
|||
|
|
@ -22,8 +22,7 @@ use {
|
|||
jay_config::{
|
||||
Direction, Workspace,
|
||||
input::{
|
||||
FallbackOutputMode, LayerDirection, SwitchEvent, Timeline, acceleration::AccelProfile,
|
||||
clickmethod::ClickMethod,
|
||||
FallbackOutputMode, SwitchEvent, acceleration::AccelProfile, clickmethod::ClickMethod,
|
||||
},
|
||||
keyboard::{ModifiedKeySym, mods::Modifiers, syms::KeySym},
|
||||
logging::LogLevel,
|
||||
|
|
@ -45,61 +44,9 @@ pub use jay_config_schema::{
|
|||
AnimationCurveConfig, Animations, ClientMatch, ColorManagement, ConfigConnector,
|
||||
ConfigDrmDevice, ConfigKeymap, ConnectorMatch, DrmDeviceMatch, Exec, Float, FocusHistory,
|
||||
GenericMatch, InputMatch, Libei, MatchExactly, Mode, Output, OutputMatch, RepeatRate,
|
||||
SimpleIm, Status, Tearing, Theme, UiDrag, Vrr, WindowMatch, Xwayland,
|
||||
SimpleCommand, SimpleIm, Status, Tearing, Theme, UiDrag, Vrr, WindowMatch, Xwayland,
|
||||
};
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub enum SimpleCommand {
|
||||
Close,
|
||||
DisablePointerConstraint,
|
||||
Focus(Direction),
|
||||
FocusParent,
|
||||
Move(Direction),
|
||||
None,
|
||||
Quit,
|
||||
ReloadConfigToml,
|
||||
ToggleFloating,
|
||||
SetFloating(bool),
|
||||
ToggleFullscreen,
|
||||
SetFullscreen(bool),
|
||||
Forward(bool),
|
||||
EnableWindowManagement(bool),
|
||||
SetFloatAboveFullscreen(bool),
|
||||
ToggleFloatAboveFullscreen,
|
||||
SetFloatPinned(bool),
|
||||
ToggleFloatPinned,
|
||||
KillClient,
|
||||
ShowBar(bool),
|
||||
ToggleBar,
|
||||
ShowTitles(bool),
|
||||
ToggleTitles,
|
||||
FloatTitles(bool),
|
||||
ToggleFloatTitles,
|
||||
FocusHistory(Timeline),
|
||||
FocusLayerRel(LayerDirection),
|
||||
FocusTiles,
|
||||
ToggleFocusFloatTiled,
|
||||
CreateMark,
|
||||
JumpToMark,
|
||||
PopMode(bool),
|
||||
EnableSimpleIm(bool),
|
||||
ToggleSimpleImEnabled,
|
||||
ReloadSimpleIm,
|
||||
EnableUnicodeInput,
|
||||
WarpMouseToFocus,
|
||||
ToggleTab,
|
||||
MakeGroupH,
|
||||
MakeGroupV,
|
||||
MakeGroupTab,
|
||||
ChangeGroupOpposite,
|
||||
Equalize,
|
||||
EqualizeRecursive,
|
||||
MoveTabLeft,
|
||||
MoveTabRight,
|
||||
SetAutotile(bool),
|
||||
ToggleAutotile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[expect(clippy::enum_variant_names)]
|
||||
pub enum Action {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue