forge
Explore
Log in

Don't you dare go Hollow

config: Deindent the snapshot

Browse files at this commit

22302bf224def0ba24ad73e10a987ee6ba33cb2dIvan MolodetskikhParent: bb6663e
niri-config/src/lib.rsmodified+865 -865
@@ -3750,973 +3750,973 @@ mod tests {
3750 );3750 );
3751 3751
3752 assert_debug_snapshot!(parsed, @r#"3752 assert_debug_snapshot!(parsed, @r#"
3753- Config {3753+ Config {
3754- input: Input {3754+ input: Input {
3755- keyboard: Keyboard {3755+ keyboard: Keyboard {
3756- xkb: Xkb {3756+ xkb: Xkb {
3757- rules: "",3757+ rules: "",
3758- model: "",3758+ model: "",
3759- layout: "us,ru",3759+ layout: "us,ru",
3760- variant: "",3760+ variant: "",
3761- options: Some(3761+ options: Some(
3762- "grp:win_space_toggle",3762+ "grp:win_space_toggle",
3763- ),
3764- file: None,
3765- },
3766- repeat_delay: 600,
3767- repeat_rate: 25,
3768- track_layout: Window,
3769- },
3770- touchpad: Touchpad {
3771- off: false,
3772- tap: true,
3773- dwt: true,
3774- dwtp: true,
3775- drag_lock: false,
3776- natural_scroll: false,
3777- click_method: Some(
3778- Clickfinger,
3779- ),
3780- accel_speed: 0.2,
3781- accel_profile: Some(
3782- Flat,
3783- ),
3784- scroll_method: Some(
3785- TwoFinger,
3786- ),
3787- scroll_button: Some(
3788- 272,
3789 ),3763 ),
3790- tap_button_map: Some(3764+ file: None,
3791- LeftMiddleRight,3765+ },
3766+ repeat_delay: 600,
3767+ repeat_rate: 25,
3768+ track_layout: Window,
3769+ },
3770+ touchpad: Touchpad {
3771+ off: false,
3772+ tap: true,
3773+ dwt: true,
3774+ dwtp: true,
3775+ drag_lock: false,
3776+ natural_scroll: false,
3777+ click_method: Some(
3778+ Clickfinger,
3779+ ),
3780+ accel_speed: 0.2,
3781+ accel_profile: Some(
3782+ Flat,
3783+ ),
3784+ scroll_method: Some(
3785+ TwoFinger,
3786+ ),
3787+ scroll_button: Some(
3788+ 272,
3789+ ),
3790+ tap_button_map: Some(
3791+ LeftMiddleRight,
3792+ ),
3793+ left_handed: false,
3794+ disabled_on_external_mouse: true,
3795+ middle_emulation: false,
3796+ scroll_factor: Some(
3797+ FloatOrInt(
3798+ 0.9,
3792 ),3799 ),
3793- left_handed: false,3800+ ),
3794- disabled_on_external_mouse: true,3801+ },
3795- middle_emulation: false,3802+ mouse: Mouse {
3796- scroll_factor: Some(3803+ off: false,
3797- FloatOrInt(3804+ natural_scroll: true,
3798- 0.9,3805+ accel_speed: 0.4,
3799- ),3806+ accel_profile: Some(
3807+ Flat,
3808+ ),
3809+ scroll_method: Some(
3810+ NoScroll,
3811+ ),
3812+ scroll_button: Some(
3813+ 273,
3814+ ),
3815+ left_handed: false,
3816+ middle_emulation: true,
3817+ scroll_factor: Some(
3818+ FloatOrInt(
3819+ 0.2,
3800 ),3820 ),
3821+ ),
3822+ },
3823+ trackpoint: Trackpoint {
3824+ off: true,
3825+ natural_scroll: true,
3826+ accel_speed: 0.0,
3827+ accel_profile: Some(
3828+ Flat,
3829+ ),
3830+ scroll_method: Some(
3831+ OnButtonDown,
3832+ ),
3833+ scroll_button: Some(
3834+ 274,
3835+ ),
3836+ middle_emulation: false,
3837+ },
3838+ trackball: Trackball {
3839+ off: true,
3840+ natural_scroll: true,
3841+ accel_speed: 0.0,
3842+ accel_profile: Some(
3843+ Flat,
3844+ ),
3845+ scroll_method: Some(
3846+ Edge,
3847+ ),
3848+ scroll_button: Some(
3849+ 275,
3850+ ),
3851+ left_handed: true,
3852+ middle_emulation: true,
3853+ },
3854+ tablet: Tablet {
3855+ off: false,
3856+ calibration_matrix: Some(
3857+ [
3858+ 1.0,
3859+ 2.0,
3860+ 3.0,
3861+ 4.0,
3862+ 5.0,
3863+ 6.0,
3864+ ],
3865+ ),
3866+ map_to_output: Some(
3867+ "eDP-1",
3868+ ),
3869+ left_handed: false,
3870+ },
3871+ touch: Touch {
3872+ map_to_output: Some(
3873+ "eDP-1",
3874+ ),
3875+ },
3876+ disable_power_key_handling: true,
3877+ warp_mouse_to_focus: true,
3878+ focus_follows_mouse: Some(
3879+ FocusFollowsMouse {
3880+ max_scroll_amount: None,
3801 },3881 },
3802- mouse: Mouse {3882+ ),
3883+ workspace_auto_back_and_forth: true,
3884+ },
3885+ outputs: Outputs(
3886+ [
3887+ Output {
3803 off: false,3888 off: false,
3804- natural_scroll: true,3889+ name: "eDP-1",
3805- accel_speed: 0.4,3890+ scale: Some(
3806- accel_profile: Some(
3807- Flat,
3808- ),
3809- scroll_method: Some(
3810- NoScroll,
3811- ),
3812- scroll_button: Some(
3813- 273,
3814- ),
3815- left_handed: false,
3816- middle_emulation: true,
3817- scroll_factor: Some(
3818 FloatOrInt(3891 FloatOrInt(
3819- 0.2,3892+ 2.0,
3820 ),3893 ),
3821 ),3894 ),
3822- },3895+ transform: Flipped90,
3823- trackpoint: Trackpoint {3896+ position: Some(
3824- off: true,3897+ Position {
3825- natural_scroll: true,3898+ x: 10,
3826- accel_speed: 0.0,3899+ y: 20,
3827- accel_profile: Some(3900+ },
3828- Flat,
3829 ),3901 ),
3830- scroll_method: Some(3902+ mode: Some(
3831- OnButtonDown,3903+ ConfiguredMode {
3904+ width: 1920,
3905+ height: 1080,
3906+ refresh: Some(
3907+ 144.0,
3908+ ),
3909+ },
3832 ),3910 ),
3833- scroll_button: Some(3911+ variable_refresh_rate: Some(
3834- 274,3912+ Vrr {
3913+ on_demand: true,
3914+ },
3835 ),3915 ),
3836- middle_emulation: false,3916+ background_color: Color {
3917+ r: 0.09803922,
3918+ g: 0.09803922,
3919+ b: 0.4,
3920+ a: 1.0,
3921+ },
3837 },3922 },
3838- trackball: Trackball {3923+ ],
3839- off: true,3924+ ),
3840- natural_scroll: true,3925+ spawn_at_startup: [
3841- accel_speed: 0.0,3926+ SpawnAtStartup {
3842- accel_profile: Some(3927+ command: [
3843- Flat,3928+ "alacritty",
3844- ),3929+ "-e",
3845- scroll_method: Some(3930+ "fish",
3846- Edge,3931+ ],
3847- ),3932+ },
3848- scroll_button: Some(3933+ ],
3849- 275,3934+ layout: Layout {
3850- ),3935+ focus_ring: FocusRing {
3851- left_handed: true,3936+ off: false,
3852- middle_emulation: true,3937+ width: FloatOrInt(
3938+ 5.0,
3939+ ),
3940+ active_color: Color {
3941+ r: 0.0,
3942+ g: 0.39215687,
3943+ b: 0.78431374,
3944+ a: 1.0,
3853 },3945 },
3854- tablet: Tablet {3946+ inactive_color: Color {
3855- off: false,3947+ r: 1.0,
3856- calibration_matrix: Some(3948+ g: 0.78431374,
3857- [3949+ b: 0.39215687,
3858- 1.0,3950+ a: 0.0,
3859- 2.0,3951+ },
3860- 3.0,3952+ active_gradient: Some(
3861- 4.0,3953+ Gradient {
3862- 5.0,3954+ from: Color {
3863- 6.0,3955+ r: 0.039215688,
3864- ],3956+ g: 0.078431375,
3957+ b: 0.11764706,
3958+ a: 1.0,
3959+ },
3960+ to: Color {
3961+ r: 0.0,
3962+ g: 0.5019608,
3963+ b: 1.0,
3964+ a: 1.0,
3965+ },
3966+ angle: 180,
3967+ relative_to: WorkspaceView,
3968+ in_: GradientInterpolation {
3969+ color_space: Srgb,
3970+ hue_interpolation: Shorter,
3971+ },
3972+ },
3973+ ),
3974+ inactive_gradient: None,
3975+ },
3976+ border: Border {
3977+ off: false,
3978+ width: FloatOrInt(
3979+ 3.0,
3980+ ),
3981+ active_color: Color {
3982+ r: 1.0,
3983+ g: 0.78431374,
3984+ b: 0.49803922,
3985+ a: 1.0,
3986+ },
3987+ inactive_color: Color {
3988+ r: 1.0,
3989+ g: 0.78431374,
3990+ b: 0.39215687,
3991+ a: 0.0,
3992+ },
3993+ active_gradient: None,
3994+ inactive_gradient: None,
3995+ },
3996+ shadow: Shadow {
3997+ on: false,
3998+ offset: ShadowOffset {
3999+ x: FloatOrInt(
4000+ 10.0,
3865 ),4001 ),
3866- map_to_output: Some(4002+ y: FloatOrInt(
3867- "eDP-1",4003+ -20.0,
3868 ),4004 ),
3869- left_handed: false,
3870 },4005 },
3871- touch: Touch {4006+ softness: FloatOrInt(
3872- map_to_output: Some(4007+ 30.0,
3873- "eDP-1",4008+ ),
4009+ spread: FloatOrInt(
4010+ 5.0,
4011+ ),
4012+ draw_behind_window: false,
4013+ color: Color {
4014+ r: 0.0,
4015+ g: 0.0,
4016+ b: 0.0,
4017+ a: 0.4392157,
4018+ },
4019+ inactive_color: None,
4020+ },
4021+ tab_indicator: TabIndicator {
4022+ off: false,
4023+ hide_when_single_tab: false,
4024+ place_within_column: false,
4025+ gap: FloatOrInt(
4026+ 5.0,
4027+ ),
4028+ width: FloatOrInt(
4029+ 10.0,
4030+ ),
4031+ length: TabIndicatorLength {
4032+ total_proportion: Some(
4033+ 0.5,
3874 ),4034 ),
3875 },4035 },
3876- disable_power_key_handling: true,4036+ position: Top,
3877- warp_mouse_to_focus: true,4037+ gaps_between_tabs: FloatOrInt(
3878- focus_follows_mouse: Some(4038+ 0.0,
3879- FocusFollowsMouse {4039+ ),
3880- max_scroll_amount: None,4040+ corner_radius: FloatOrInt(
3881- },4041+ 0.0,
3882 ),4042 ),
3883- workspace_auto_back_and_forth: true,4043+ active_color: None,
4044+ inactive_color: None,
4045+ active_gradient: None,
4046+ inactive_gradient: None,
3884 },4047 },
3885- outputs: Outputs(4048+ insert_hint: InsertHint {
3886- [4049+ off: false,
3887- Output {4050+ color: Color {
3888- off: false,4051+ r: 1.0,
3889- name: "eDP-1",4052+ g: 0.78431374,
3890- scale: Some(4053+ b: 0.49803922,
3891- FloatOrInt(4054+ a: 1.0,
3892- 2.0,4055+ },
3893- ),4056+ gradient: Some(
3894- ),4057+ Gradient {
3895- transform: Flipped90,4058+ from: Color {
3896- position: Some(4059+ r: 0.039215688,
3897- Position {4060+ g: 0.078431375,
3898- x: 10,4061+ b: 0.11764706,
3899- y: 20,4062+ a: 1.0,
3900- },4063+ },
3901- ),4064+ to: Color {
3902- mode: Some(4065+ r: 0.0,
3903- ConfiguredMode {4066+ g: 0.5019608,
3904- width: 1920,4067+ b: 1.0,
3905- height: 1080,
3906- refresh: Some(
3907- 144.0,
3908- ),
3909- },
3910- ),
3911- variable_refresh_rate: Some(
3912- Vrr {
3913- on_demand: true,
3914- },
3915- ),
3916- background_color: Color {
3917- r: 0.09803922,
3918- g: 0.09803922,
3919- b: 0.4,
3920 a: 1.0,4068 a: 1.0,
3921 },4069 },
4070+ angle: 180,
4071+ relative_to: WorkspaceView,
4072+ in_: GradientInterpolation {
4073+ color_space: Srgb,
4074+ hue_interpolation: Shorter,
4075+ },
3922 },4076 },
3923- ],4077+ ),
4078+ },
4079+ preset_column_widths: [
4080+ Proportion(
4081+ 0.25,
4082+ ),
4083+ Proportion(
4084+ 0.5,
4085+ ),
4086+ Fixed(
4087+ 960,
4088+ ),
4089+ Fixed(
4090+ 1280,
4091+ ),
4092+ ],
4093+ default_column_width: Some(
4094+ DefaultPresetSize(
4095+ Some(
4096+ Proportion(
4097+ 0.25,
4098+ ),
4099+ ),
4100+ ),
3924 ),4101 ),
3925- spawn_at_startup: [4102+ preset_window_heights: [
3926- SpawnAtStartup {4103+ Proportion(
3927- command: [4104+ 0.25,
3928- "alacritty",4105+ ),
3929- "-e",4106+ Proportion(
3930- "fish",4107+ 0.5,
3931- ],4108+ ),
3932- },4109+ Fixed(
4110+ 960,
4111+ ),
4112+ Fixed(
4113+ 1280,
4114+ ),
3933 ],4115 ],
3934- layout: Layout {4116+ center_focused_column: OnOverflow,
3935- focus_ring: FocusRing {4117+ always_center_single_column: false,
4118+ empty_workspace_above_first: false,
4119+ default_column_display: Tabbed,
4120+ gaps: FloatOrInt(
4121+ 8.0,
4122+ ),
4123+ struts: Struts {
4124+ left: FloatOrInt(
4125+ 1.0,
4126+ ),
4127+ right: FloatOrInt(
4128+ 2.0,
4129+ ),
4130+ top: FloatOrInt(
4131+ 3.0,
4132+ ),
4133+ bottom: FloatOrInt(
4134+ 0.0,
4135+ ),
4136+ },
4137+ },
4138+ prefer_no_csd: true,
4139+ cursor: Cursor {
4140+ xcursor_theme: "breeze_cursors",
4141+ xcursor_size: 16,
4142+ hide_when_typing: true,
4143+ hide_after_inactive_ms: Some(
4144+ 3000,
4145+ ),
4146+ },
4147+ screenshot_path: Some(
4148+ "~/Screenshots/screenshot.png",
4149+ ),
4150+ clipboard: Clipboard {
4151+ disable_primary: true,
4152+ },
4153+ hotkey_overlay: HotkeyOverlay {
4154+ skip_at_startup: true,
4155+ },
4156+ animations: Animations {
4157+ off: false,
4158+ slowdown: 2.0,
4159+ workspace_switch: WorkspaceSwitchAnim(
4160+ Animation {
3936 off: false,4161 off: false,
3937- width: FloatOrInt(4162+ kind: Spring(
3938- 5.0,4163+ SpringParams {
4164+ damping_ratio: 1.0,
4165+ stiffness: 1000,
4166+ epsilon: 0.0001,
4167+ },
3939 ),4168 ),
3940- active_color: Color {4169+ },
3941- r: 0.0,4170+ ),
3942- g: 0.39215687,4171+ window_open: WindowOpenAnim {
3943- b: 0.78431374,4172+ anim: Animation {
3944- a: 1.0,4173+ off: true,
3945- },4174+ kind: Easing(
3946- inactive_color: Color {4175+ EasingParams {
3947- r: 1.0,4176+ duration_ms: 150,
3948- g: 0.78431374,4177+ curve: EaseOutExpo,
3949- b: 0.39215687,
3950- a: 0.0,
3951- },
3952- active_gradient: Some(
3953- Gradient {
3954- from: Color {
3955- r: 0.039215688,
3956- g: 0.078431375,
3957- b: 0.11764706,
3958- a: 1.0,
3959- },
3960- to: Color {
3961- r: 0.0,
3962- g: 0.5019608,
3963- b: 1.0,
3964- a: 1.0,
3965- },
3966- angle: 180,
3967- relative_to: WorkspaceView,
3968- in_: GradientInterpolation {
3969- color_space: Srgb,
3970- hue_interpolation: Shorter,
3971- },
3972 },4178 },
3973 ),4179 ),
3974- inactive_gradient: None,
3975 },4180 },
3976- border: Border {4181+ custom_shader: None,
4182+ },
4183+ window_close: WindowCloseAnim {
4184+ anim: Animation {
3977 off: false,4185 off: false,
3978- width: FloatOrInt(4186+ kind: Easing(
3979- 3.0,4187+ EasingParams {
4188+ duration_ms: 150,
4189+ curve: EaseOutQuad,
4190+ },
3980 ),4191 ),
3981- active_color: Color {
3982- r: 1.0,
3983- g: 0.78431374,
3984- b: 0.49803922,
3985- a: 1.0,
3986- },
3987- inactive_color: Color {
3988- r: 1.0,
3989- g: 0.78431374,
3990- b: 0.39215687,
3991- a: 0.0,
3992- },
3993- active_gradient: None,
3994- inactive_gradient: None,
3995 },4192 },
3996- shadow: Shadow {4193+ custom_shader: None,
3997- on: false,4194+ },
3998- offset: ShadowOffset {4195+ horizontal_view_movement: HorizontalViewMovementAnim(
3999- x: FloatOrInt(4196+ Animation {
4000- 10.0,4197+ off: false,
4001- ),4198+ kind: Easing(
4002- y: FloatOrInt(4199+ EasingParams {
4003- -20.0,4200+ duration_ms: 100,
4004- ),4201+ curve: EaseOutExpo,
4005- },4202+ },
4006- softness: FloatOrInt(
4007- 30.0,
4008- ),
4009- spread: FloatOrInt(
4010- 5.0,
4011 ),4203 ),
4012- draw_behind_window: false,
4013- color: Color {
4014- r: 0.0,
4015- g: 0.0,
4016- b: 0.0,
4017- a: 0.4392157,
4018- },
4019- inactive_color: None,
4020 },4204 },
4021- tab_indicator: TabIndicator {4205+ ),
4206+ window_movement: WindowMovementAnim(
4207+ Animation {
4022 off: false,4208 off: false,
4023- hide_when_single_tab: false,4209+ kind: Spring(
4024- place_within_column: false,4210+ SpringParams {
4025- gap: FloatOrInt(4211+ damping_ratio: 1.0,
4026- 5.0,4212+ stiffness: 800,
4027- ),4213+ epsilon: 0.0001,
4028- width: FloatOrInt(4214+ },
4029- 10.0,
4030- ),
4031- length: TabIndicatorLength {
4032- total_proportion: Some(
4033- 0.5,
4034- ),
4035- },
4036- position: Top,
4037- gaps_between_tabs: FloatOrInt(
4038- 0.0,
4039- ),
4040- corner_radius: FloatOrInt(
4041- 0.0,
4042 ),4215 ),
4043- active_color: None,
4044- inactive_color: None,
4045- active_gradient: None,
4046- inactive_gradient: None,
4047 },4216 },
4048- insert_hint: InsertHint {4217+ ),
4218+ window_resize: WindowResizeAnim {
4219+ anim: Animation {
4049 off: false,4220 off: false,
4050- color: Color {4221+ kind: Spring(
4051- r: 1.0,4222+ SpringParams {
4052- g: 0.78431374,4223+ damping_ratio: 1.0,
4053- b: 0.49803922,4224+ stiffness: 800,
4054- a: 1.0,4225+ epsilon: 0.0001,
4055- },
4056- gradient: Some(
4057- Gradient {
4058- from: Color {
4059- r: 0.039215688,
4060- g: 0.078431375,
4061- b: 0.11764706,
4062- a: 1.0,
4063- },
4064- to: Color {
4065- r: 0.0,
4066- g: 0.5019608,
4067- b: 1.0,
4068- a: 1.0,
4069- },
4070- angle: 180,
4071- relative_to: WorkspaceView,
4072- in_: GradientInterpolation {
4073- color_space: Srgb,
4074- hue_interpolation: Shorter,
4075- },
4076 },4226 },
4077 ),4227 ),
4078 },4228 },
4079- preset_column_widths: [4229+ custom_shader: None,
4080- Proportion(4230+ },
4081- 0.25,4231+ config_notification_open_close: ConfigNotificationOpenCloseAnim(
4082- ),4232+ Animation {
4083- Proportion(4233+ off: false,
4084- 0.5,4234+ kind: Spring(
4235+ SpringParams {
4236+ damping_ratio: 0.6,
4237+ stiffness: 1000,
4238+ epsilon: 0.001,
4239+ },
4085 ),4240 ),
4086- Fixed(4241+ },
4087- 960,4242+ ),
4243+ screenshot_ui_open: ScreenshotUiOpenAnim(
4244+ Animation {
4245+ off: false,
4246+ kind: Easing(
4247+ EasingParams {
4248+ duration_ms: 200,
4249+ curve: EaseOutQuad,
4250+ },
4088 ),4251 ),
4089- Fixed(4252+ },
4090- 1280,4253+ ),
4254+ },
4255+ environment: Environment(
4256+ [
4257+ EnvironmentVariable {
4258+ name: "QT_QPA_PLATFORM",
4259+ value: Some(
4260+ "wayland",
4091 ),4261 ),
4262+ },
4263+ EnvironmentVariable {
4264+ name: "DISPLAY",
4265+ value: None,
4266+ },
4267+ ],
4268+ ),
4269+ window_rules: [
4270+ WindowRule {
4271+ matches: [
4272+ Match {
4273+ app_id: Some(
4274+ RegexEq(
4275+ Regex(
4276+ ".*alacritty",
4277+ ),
4278+ ),
4279+ ),
4280+ title: None,
4281+ is_active: None,
4282+ is_focused: None,
4283+ is_active_in_column: None,
4284+ is_floating: None,
4285+ is_window_cast_target: None,
4286+ at_startup: None,
4287+ },
4092 ],4288 ],
4093- default_column_width: Some(4289+ excludes: [
4290+ Match {
4291+ app_id: None,
4292+ title: Some(
4293+ RegexEq(
4294+ Regex(
4295+ "~",
4296+ ),
4297+ ),
4298+ ),
4299+ is_active: None,
4300+ is_focused: None,
4301+ is_active_in_column: None,
4302+ is_floating: None,
4303+ is_window_cast_target: None,
4304+ at_startup: None,
4305+ },
4306+ Match {
4307+ app_id: None,
4308+ title: None,
4309+ is_active: Some(
4310+ true,
4311+ ),
4312+ is_focused: Some(
4313+ false,
4314+ ),
4315+ is_active_in_column: None,
4316+ is_floating: None,
4317+ is_window_cast_target: None,
4318+ at_startup: None,
4319+ },
4320+ ],
4321+ default_column_width: None,
4322+ default_window_height: Some(
4094 DefaultPresetSize(4323 DefaultPresetSize(
4095 Some(4324 Some(
4096- Proportion(4325+ Fixed(
4097- 0.25,4326+ 500,
4098 ),4327 ),
4099 ),4328 ),
4100 ),4329 ),
4101 ),4330 ),
4102- preset_window_heights: [4331+ open_on_output: Some(
4103- Proportion(4332+ "eDP-1",
4104- 0.25,
4105- ),
4106- Proportion(
4107- 0.5,
4108- ),
4109- Fixed(
4110- 960,
4111- ),
4112- Fixed(
4113- 1280,
4114- ),
4115- ],
4116- center_focused_column: OnOverflow,
4117- always_center_single_column: false,
4118- empty_workspace_above_first: false,
4119- default_column_display: Tabbed,
4120- gaps: FloatOrInt(
4121- 8.0,
4122 ),4333 ),
4123- struts: Struts {4334+ open_on_workspace: None,
4124- left: FloatOrInt(4335+ open_maximized: Some(
4125- 1.0,4336+ true,
4126- ),4337+ ),
4127- right: FloatOrInt(4338+ open_fullscreen: Some(
4128- 2.0,4339+ false,
4340+ ),
4341+ open_floating: Some(
4342+ false,
4343+ ),
4344+ open_focused: Some(
4345+ true,
4346+ ),
4347+ min_width: None,
4348+ min_height: None,
4349+ max_width: None,
4350+ max_height: None,
4351+ focus_ring: BorderRule {
4352+ off: true,
4353+ on: false,
4354+ width: Some(
4355+ FloatOrInt(
4356+ 3.0,
4357+ ),
4129 ),4358 ),
4130- top: FloatOrInt(4359+ active_color: None,
4131- 3.0,4360+ inactive_color: None,
4361+ active_gradient: None,
4362+ inactive_gradient: None,
4363+ },
4364+ border: BorderRule {
4365+ off: false,
4366+ on: true,
4367+ width: Some(
4368+ FloatOrInt(
4369+ 8.5,
4370+ ),
4132 ),4371 ),
4133- bottom: FloatOrInt(4372+ active_color: None,
4134- 0.0,4373+ inactive_color: None,
4374+ active_gradient: None,
4375+ inactive_gradient: None,
4376+ },
4377+ shadow: ShadowRule {
4378+ off: false,
4379+ on: false,
4380+ offset: None,
4381+ softness: None,
4382+ spread: None,
4383+ draw_behind_window: None,
4384+ color: None,
4385+ inactive_color: None,
4386+ },
4387+ tab_indicator: TabIndicatorRule {
4388+ active_color: Some(
4389+ Color {
4390+ r: 1.0,
4391+ g: 0.0,
4392+ b: 0.0,
4393+ a: 1.0,
4394+ },
4135 ),4395 ),
4396+ inactive_color: None,
4397+ active_gradient: None,
4398+ inactive_gradient: None,
4136 },4399 },
4137- },4400+ draw_border_with_background: None,
4138- prefer_no_csd: true,4401+ opacity: None,
4139- cursor: Cursor {4402+ geometry_corner_radius: None,
4140- xcursor_theme: "breeze_cursors",4403+ clip_to_geometry: None,
4141- xcursor_size: 16,4404+ baba_is_float: None,
4142- hide_when_typing: true,4405+ block_out_from: None,
4143- hide_after_inactive_ms: Some(4406+ variable_refresh_rate: None,
4144- 3000,4407+ default_column_display: Some(
4408+ Tabbed,
4145 ),4409 ),
4146- },4410+ default_floating_position: Some(
4147- screenshot_path: Some(4411+ FloatingPosition {
4148- "~/Screenshots/screenshot.png",4412+ x: FloatOrInt(
4149- ),4413+ 100.0,
4150- clipboard: Clipboard {4414+ ),
4151- disable_primary: true,4415+ y: FloatOrInt(
4152- },4416+ -200.0,
4153- hotkey_overlay: HotkeyOverlay {
4154- skip_at_startup: true,
4155- },
4156- animations: Animations {
4157- off: false,
4158- slowdown: 2.0,
4159- workspace_switch: WorkspaceSwitchAnim(
4160- Animation {
4161- off: false,
4162- kind: Spring(
4163- SpringParams {
4164- damping_ratio: 1.0,
4165- stiffness: 1000,
4166- epsilon: 0.0001,
4167- },
4168 ),4417 ),
4418+ relative_to: BottomLeft,
4169 },4419 },
4170 ),4420 ),
4171- window_open: WindowOpenAnim {4421+ scroll_factor: None,
4172- anim: Animation {4422+ },
4173- off: true,4423+ ],
4174- kind: Easing(4424+ layer_rules: [
4175- EasingParams {4425+ LayerRule {
4176- duration_ms: 150,4426+ matches: [
4177- curve: EaseOutExpo,4427+ Match {
4178- },4428+ namespace: Some(
4429+ RegexEq(
4430+ Regex(
4431+ "^notifications$",
4432+ ),
4433+ ),
4179 ),4434 ),
4435+ at_startup: None,
4180 },4436 },
4181- custom_shader: None,4437+ ],
4438+ excludes: [],
4439+ opacity: None,
4440+ block_out_from: Some(
4441+ Screencast,
4442+ ),
4443+ shadow: ShadowRule {
4444+ off: false,
4445+ on: false,
4446+ offset: None,
4447+ softness: None,
4448+ spread: None,
4449+ draw_behind_window: None,
4450+ color: None,
4451+ inactive_color: None,
4182 },4452 },
4183- window_close: WindowCloseAnim {4453+ geometry_corner_radius: None,
4184- anim: Animation {4454+ },
4185- off: false,4455+ ],
4186- kind: Easing(4456+ binds: Binds(
4187- EasingParams {4457+ [
4188- duration_ms: 150,4458+ Bind {
4189- curve: EaseOutQuad,4459+ key: Key {
4190- },4460+ trigger: Keysym(
4461+ XK_Escape,
4191 ),4462 ),
4192- },4463+ modifiers: Modifiers(
4193- custom_shader: None,4464+ COMPOSITOR,
4194- },
4195- horizontal_view_movement: HorizontalViewMovementAnim(
4196- Animation {
4197- off: false,
4198- kind: Easing(
4199- EasingParams {
4200- duration_ms: 100,
4201- curve: EaseOutExpo,
4202- },
4203 ),4465 ),
4204 },4466 },
4205- ),4467+ action: ToggleKeyboardShortcutsInhibit,
4206- window_movement: WindowMovementAnim(4468+ repeat: true,
4207- Animation {4469+ cooldown: None,
4208- off: false,4470+ allow_when_locked: false,
4209- kind: Spring(4471+ allow_inhibiting: false,
4210- SpringParams {4472+ hotkey_overlay_title: Some(
4211- damping_ratio: 1.0,4473+ Some(
4212- stiffness: 800,4474+ "Inhibit",
4213- epsilon: 0.0001,
4214- },
4215 ),4475 ),
4216- },4476+ ),
4217- ),4477+ },
4218- window_resize: WindowResizeAnim {4478+ Bind {
4219- anim: Animation {4479+ key: Key {
4220- off: false,4480+ trigger: Keysym(
4221- kind: Spring(4481+ XK_Escape,
4222- SpringParams {4482+ ),
4223- damping_ratio: 1.0,4483+ modifiers: Modifiers(
4224- stiffness: 800,4484+ SHIFT | COMPOSITOR,
4225- epsilon: 0.0001,
4226- },
4227 ),4485 ),
4228 },4486 },
4229- custom_shader: None,4487+ action: ToggleKeyboardShortcutsInhibit,
4488+ repeat: true,
4489+ cooldown: None,
4490+ allow_when_locked: false,
4491+ allow_inhibiting: false,
4492+ hotkey_overlay_title: None,
4230 },4493 },
4231- config_notification_open_close: ConfigNotificationOpenCloseAnim(4494+ Bind {
4232- Animation {4495+ key: Key {
4233- off: false,4496+ trigger: Keysym(
4234- kind: Spring(4497+ XK_t,
4235- SpringParams {
4236- damping_ratio: 0.6,
4237- stiffness: 1000,
4238- epsilon: 0.001,
4239- },
4240 ),4498 ),
4241- },4499+ modifiers: Modifiers(
4242- ),4500+ COMPOSITOR,
4243- screenshot_ui_open: ScreenshotUiOpenAnim(
4244- Animation {
4245- off: false,
4246- kind: Easing(
4247- EasingParams {
4248- duration_ms: 200,
4249- curve: EaseOutQuad,
4250- },
4251 ),4501 ),
4252 },4502 },
4253- ),4503+ action: Spawn(
4254- },4504+ [
4255- environment: Environment(4505+ "alacritty",
4256- [4506+ ],
4257- EnvironmentVariable {4507+ ),
4258- name: "QT_QPA_PLATFORM",4508+ repeat: true,
4259- value: Some(4509+ cooldown: None,
4260- "wayland",4510+ allow_when_locked: true,
4511+ allow_inhibiting: true,
4512+ hotkey_overlay_title: None,
4513+ },
4514+ Bind {
4515+ key: Key {
4516+ trigger: Keysym(
4517+ XK_q,
4261 ),4518 ),
4262- },4519+ modifiers: Modifiers(
4263- EnvironmentVariable {4520+ COMPOSITOR,
4264- name: "DISPLAY",
4265- value: None,
4266- },
4267- ],
4268- ),
4269- window_rules: [
4270- WindowRule {
4271- matches: [
4272- Match {
4273- app_id: Some(
4274- RegexEq(
4275- Regex(
4276- ".*alacritty",
4277- ),
4278- ),
4279- ),
4280- title: None,
4281- is_active: None,
4282- is_focused: None,
4283- is_active_in_column: None,
4284- is_floating: None,
4285- is_window_cast_target: None,
4286- at_startup: None,
4287- },
4288- ],
4289- excludes: [
4290- Match {
4291- app_id: None,
4292- title: Some(
4293- RegexEq(
4294- Regex(
4295- "~",
4296- ),
4297- ),
4298- ),
4299- is_active: None,
4300- is_focused: None,
4301- is_active_in_column: None,
4302- is_floating: None,
4303- is_window_cast_target: None,
4304- at_startup: None,
4305- },
4306- Match {
4307- app_id: None,
4308- title: None,
4309- is_active: Some(
4310- true,
4311- ),
4312- is_focused: Some(
4313- false,
4314- ),
4315- is_active_in_column: None,
4316- is_floating: None,
4317- is_window_cast_target: None,
4318- at_startup: None,
4319- },
4320- ],
4321- default_column_width: None,
4322- default_window_height: Some(
4323- DefaultPresetSize(
4324- Some(
4325- Fixed(
4326- 500,
4327- ),
4328- ),
4329 ),4521 ),
4522+ },
4523+ action: CloseWindow,
4524+ repeat: true,
4525+ cooldown: None,
4526+ allow_when_locked: false,
4527+ allow_inhibiting: true,
4528+ hotkey_overlay_title: Some(
4529+ None,
4330 ),4530 ),
4331- open_on_output: Some(4531+ },
4332- "eDP-1",4532+ Bind {
4333- ),4533+ key: Key {
4334- open_on_workspace: None,4534+ trigger: Keysym(
4335- open_maximized: Some(4535+ XK_h,
4336- true,
4337- ),
4338- open_fullscreen: Some(
4339- false,
4340- ),
4341- open_floating: Some(
4342- false,
4343- ),
4344- open_focused: Some(
4345- true,
4346- ),
4347- min_width: None,
4348- min_height: None,
4349- max_width: None,
4350- max_height: None,
4351- focus_ring: BorderRule {
4352- off: true,
4353- on: false,
4354- width: Some(
4355- FloatOrInt(
4356- 3.0,
4357- ),
4358 ),4536 ),
4359- active_color: None,4537+ modifiers: Modifiers(
4360- inactive_color: None,4538+ SHIFT | COMPOSITOR,
4361- active_gradient: None,
4362- inactive_gradient: None,
4363- },
4364- border: BorderRule {
4365- off: false,
4366- on: true,
4367- width: Some(
4368- FloatOrInt(
4369- 8.5,
4370- ),
4371 ),4539 ),
4372- active_color: None,
4373- inactive_color: None,
4374- active_gradient: None,
4375- inactive_gradient: None,
4376- },
4377- shadow: ShadowRule {
4378- off: false,
4379- on: false,
4380- offset: None,
4381- softness: None,
4382- spread: None,
4383- draw_behind_window: None,
4384- color: None,
4385- inactive_color: None,
4386 },4540 },
4387- tab_indicator: TabIndicatorRule {4541+ action: FocusMonitorLeft,
4388- active_color: Some(4542+ repeat: true,
4389- Color {4543+ cooldown: None,
4390- r: 1.0,4544+ allow_when_locked: false,
4391- g: 0.0,4545+ allow_inhibiting: true,
4392- b: 0.0,4546+ hotkey_overlay_title: None,
4393- a: 1.0,4547+ },
4394- },4548+ Bind {
4549+ key: Key {
4550+ trigger: Keysym(
4551+ XK_l,
4552+ ),
4553+ modifiers: Modifiers(
4554+ CTRL | SHIFT | COMPOSITOR,
4395 ),4555 ),
4396- inactive_color: None,
4397- active_gradient: None,
4398- inactive_gradient: None,
4399 },4556 },
4400- draw_border_with_background: None,4557+ action: MoveWindowToMonitorRight,
4401- opacity: None,4558+ repeat: true,
4402- geometry_corner_radius: None,4559+ cooldown: None,
4403- clip_to_geometry: None,4560+ allow_when_locked: false,
4404- baba_is_float: None,4561+ allow_inhibiting: true,
4405- block_out_from: None,4562+ hotkey_overlay_title: None,
4406- variable_refresh_rate: None,
4407- default_column_display: Some(
4408- Tabbed,
4409- ),
4410- default_floating_position: Some(
4411- FloatingPosition {
4412- x: FloatOrInt(
4413- 100.0,
4414- ),
4415- y: FloatOrInt(
4416- -200.0,
4417- ),
4418- relative_to: BottomLeft,
4419- },
4420- ),
4421- scroll_factor: None,
4422 },4563 },
4423- ],4564+ Bind {
4424- layer_rules: [4565+ key: Key {
4425- LayerRule {4566+ trigger: Keysym(
4426- matches: [4567+ XK_comma,
4427- Match {4568+ ),
4428- namespace: Some(4569+ modifiers: Modifiers(
4429- RegexEq(4570+ COMPOSITOR,
4430- Regex(4571+ ),
4431- "^notifications$",
4432- ),
4433- ),
4434- ),
4435- at_startup: None,
4436- },
4437- ],
4438- excludes: [],
4439- opacity: None,
4440- block_out_from: Some(
4441- Screencast,
4442- ),
4443- shadow: ShadowRule {
4444- off: false,
4445- on: false,
4446- offset: None,
4447- softness: None,
4448- spread: None,
4449- draw_behind_window: None,
4450- color: None,
4451- inactive_color: None,
4452 },4572 },
4453- geometry_corner_radius: None,4573+ action: ConsumeWindowIntoColumn,
4574+ repeat: true,
4575+ cooldown: None,
4576+ allow_when_locked: false,
4577+ allow_inhibiting: true,
4578+ hotkey_overlay_title: None,
4454 },4579 },
4455- ],4580+ Bind {
4456- binds: Binds(4581+ key: Key {
4457- [4582+ trigger: Keysym(
4458- Bind {4583+ XK_1,
4459- key: Key {
4460- trigger: Keysym(
4461- XK_Escape,
4462- ),
4463- modifiers: Modifiers(
4464- COMPOSITOR,
4465- ),
4466- },
4467- action: ToggleKeyboardShortcutsInhibit,
4468- repeat: true,
4469- cooldown: None,
4470- allow_when_locked: false,
4471- allow_inhibiting: false,
4472- hotkey_overlay_title: Some(
4473- Some(
4474- "Inhibit",
4475- ),
4476 ),4584 ),
4477- },4585+ modifiers: Modifiers(
4478- Bind {4586+ COMPOSITOR,
4479- key: Key {
4480- trigger: Keysym(
4481- XK_Escape,
4482- ),
4483- modifiers: Modifiers(
4484- SHIFT | COMPOSITOR,
4485- ),
4486- },
4487- action: ToggleKeyboardShortcutsInhibit,
4488- repeat: true,
4489- cooldown: None,
4490- allow_when_locked: false,
4491- allow_inhibiting: false,
4492- hotkey_overlay_title: None,
4493- },
4494- Bind {
4495- key: Key {
4496- trigger: Keysym(
4497- XK_t,
4498- ),
4499- modifiers: Modifiers(
4500- COMPOSITOR,
4501- ),
4502- },
4503- action: Spawn(
4504- [
4505- "alacritty",
4506- ],
4507 ),4587 ),
4508- repeat: true,
4509- cooldown: None,
4510- allow_when_locked: true,
4511- allow_inhibiting: true,
4512- hotkey_overlay_title: None,
4513 },4588 },
4514- Bind {4589+ action: FocusWorkspace(
4515- key: Key {4590+ Index(
4516- trigger: Keysym(4591+ 1,
4517- XK_q,
4518- ),
4519- modifiers: Modifiers(
4520- COMPOSITOR,
4521- ),
4522- },
4523- action: CloseWindow,
4524- repeat: true,
4525- cooldown: None,
4526- allow_when_locked: false,
4527- allow_inhibiting: true,
4528- hotkey_overlay_title: Some(
4529- None,
4530 ),4592 ),
4531- },4593+ ),
4532- Bind {4594+ repeat: true,
4533- key: Key {4595+ cooldown: None,
4534- trigger: Keysym(4596+ allow_when_locked: false,
4535- XK_h,4597+ allow_inhibiting: true,
4536- ),4598+ hotkey_overlay_title: None,
4537- modifiers: Modifiers(4599+ },
4538- SHIFT | COMPOSITOR,4600+ Bind {
4539- ),4601+ key: Key {
4540- },4602+ trigger: Keysym(
4541- action: FocusMonitorLeft,4603+ XK_1,
4542- repeat: true,
4543- cooldown: None,
4544- allow_when_locked: false,
4545- allow_inhibiting: true,
4546- hotkey_overlay_title: None,
4547- },
4548- Bind {
4549- key: Key {
4550- trigger: Keysym(
4551- XK_l,
4552- ),
4553- modifiers: Modifiers(
4554- CTRL | SHIFT | COMPOSITOR,
4555- ),
4556- },
4557- action: MoveWindowToMonitorRight,
4558- repeat: true,
4559- cooldown: None,
4560- allow_when_locked: false,
4561- allow_inhibiting: true,
4562- hotkey_overlay_title: None,
4563- },
4564- Bind {
4565- key: Key {
4566- trigger: Keysym(
4567- XK_comma,
4568- ),
4569- modifiers: Modifiers(
4570- COMPOSITOR,
4571- ),
4572- },
4573- action: ConsumeWindowIntoColumn,
4574- repeat: true,
4575- cooldown: None,
4576- allow_when_locked: false,
4577- allow_inhibiting: true,
4578- hotkey_overlay_title: None,
4579- },
4580- Bind {
4581- key: Key {
4582- trigger: Keysym(
4583- XK_1,
4584- ),
4585- modifiers: Modifiers(
4586- COMPOSITOR,
4587- ),
4588- },
4589- action: FocusWorkspace(
4590- Index(
4591- 1,
4592- ),
4593 ),4604 ),
4594- repeat: true,4605+ modifiers: Modifiers(
4595- cooldown: None,4606+ SHIFT | COMPOSITOR,
4596- allow_when_locked: false,
4597- allow_inhibiting: true,
4598- hotkey_overlay_title: None,
4599- },
4600- Bind {
4601- key: Key {
4602- trigger: Keysym(
4603- XK_1,
4604- ),
4605- modifiers: Modifiers(
4606- SHIFT | COMPOSITOR,
4607- ),
4608- },
4609- action: FocusWorkspace(
4610- Name(
4611- "workspace-1",
4612- ),
4613 ),4607 ),
4614- repeat: true,
4615- cooldown: None,
4616- allow_when_locked: false,
4617- allow_inhibiting: true,
4618- hotkey_overlay_title: None,
4619 },4608 },
4620- Bind {4609+ action: FocusWorkspace(
4621- key: Key {4610+ Name(
4622- trigger: Keysym(4611+ "workspace-1",
4623- XK_e,4612+ ),
4624- ),4613+ ),
4625- modifiers: Modifiers(4614+ repeat: true,
4626- SHIFT | COMPOSITOR,4615+ cooldown: None,
4627- ),4616+ allow_when_locked: false,
4628- },4617+ allow_inhibiting: true,
4629- action: Quit(4618+ hotkey_overlay_title: None,
4630- true,4619+ },
4620+ Bind {
4621+ key: Key {
4622+ trigger: Keysym(
4623+ XK_e,
4624+ ),
4625+ modifiers: Modifiers(
4626+ SHIFT | COMPOSITOR,
4631 ),4627 ),
4632- repeat: true,
4633- cooldown: None,
4634- allow_when_locked: false,
4635- allow_inhibiting: false,
4636- hotkey_overlay_title: None,
4637 },4628 },
4638- Bind {4629+ action: Quit(
4639- key: Key {4630+ true,
4640- trigger: WheelScrollDown,4631+ ),
4641- modifiers: Modifiers(4632+ repeat: true,
4642- COMPOSITOR,4633+ cooldown: None,
4643- ),4634+ allow_when_locked: false,
4644- },4635+ allow_inhibiting: false,
4645- action: FocusWorkspaceDown,4636+ hotkey_overlay_title: None,
4646- repeat: true,4637+ },
4647- cooldown: Some(4638+ Bind {
4648- 150ms,4639+ key: Key {
4640+ trigger: WheelScrollDown,
4641+ modifiers: Modifiers(
4642+ COMPOSITOR,
4649 ),4643 ),
4650- allow_when_locked: false,
4651- allow_inhibiting: true,
4652- hotkey_overlay_title: None,
4653 },4644 },
4654- ],4645+ action: FocusWorkspaceDown,
4646+ repeat: true,
4647+ cooldown: Some(
4648+ 150ms,
4649+ ),
4650+ allow_when_locked: false,
4651+ allow_inhibiting: true,
4652+ hotkey_overlay_title: None,
4653+ },
4654+ ],
4655+ ),
4656+ switch_events: SwitchBinds {
4657+ lid_open: None,
4658+ lid_close: None,
4659+ tablet_mode_on: Some(
4660+ SwitchAction {
4661+ spawn: [
4662+ "bash",
4663+ "-c",
4664+ "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true",
4665+ ],
4666+ },
4655 ),4667 ),
4656- switch_events: SwitchBinds {4668+ tablet_mode_off: Some(
4657- lid_open: None,4669+ SwitchAction {
4658- lid_close: None,4670+ spawn: [
4659- tablet_mode_on: Some(4671+ "bash",
4660- SwitchAction {4672+ "-c",
4661- spawn: [4673+ "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false",
4662- "bash",4674+ ],
4663- "-c",4675+ },
4664- "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true",4676+ ),
4665- ],4677+ },
4666- },4678+ debug: DebugConfig {
4679+ preview_render: None,
4680+ dbus_interfaces_in_non_session_instances: false,
4681+ wait_for_frame_completion_before_queueing: false,
4682+ enable_overlay_planes: false,
4683+ disable_cursor_plane: false,
4684+ disable_direct_scanout: false,
4685+ restrict_primary_scanout_to_matching_format: false,
4686+ render_drm_device: Some(
4687+ "/dev/dri/renderD129",
4688+ ),
4689+ force_pipewire_invalid_modifier: false,
4690+ emulate_zero_presentation_time: false,
4691+ disable_resize_throttling: false,
4692+ disable_transactions: false,
4693+ keep_laptop_panel_on_when_lid_is_closed: false,
4694+ disable_monitor_names: false,
4695+ strict_new_window_focus_policy: false,
4696+ },
4697+ workspaces: [
4698+ Workspace {
4699+ name: WorkspaceName(
4700+ "workspace-1",
4667 ),4701 ),
4668- tablet_mode_off: Some(4702+ open_on_output: Some(
4669- SwitchAction {4703+ "eDP-1",
4670- spawn: [
4671- "bash",
4672- "-c",
4673- "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false",
4674- ],
4675- },
4676 ),4704 ),
4677 },4705 },
4678- debug: DebugConfig {4706+ Workspace {
4679- preview_render: None,4707+ name: WorkspaceName(
4680- dbus_interfaces_in_non_session_instances: false,4708+ "workspace-2",
4681- wait_for_frame_completion_before_queueing: false,
4682- enable_overlay_planes: false,
4683- disable_cursor_plane: false,
4684- disable_direct_scanout: false,
4685- restrict_primary_scanout_to_matching_format: false,
4686- render_drm_device: Some(
4687- "/dev/dri/renderD129",
4688 ),4709 ),
4689- force_pipewire_invalid_modifier: false,4710+ open_on_output: None,
4690- emulate_zero_presentation_time: false,
4691- disable_resize_throttling: false,
4692- disable_transactions: false,
4693- keep_laptop_panel_on_when_lid_is_closed: false,
4694- disable_monitor_names: false,
4695- strict_new_window_focus_policy: false,
4696 },4711 },
4697- workspaces: [4712+ Workspace {
4698- Workspace {4713+ name: WorkspaceName(
4699- name: WorkspaceName(4714+ "workspace-3",
4700- "workspace-1",4715+ ),
4701- ),4716+ open_on_output: None,
4702- open_on_output: Some(4717+ },
4703- "eDP-1",4718+ ],
4704- ),4719+ }
4705- },
4706- Workspace {
4707- name: WorkspaceName(
4708- "workspace-2",
4709- ),
4710- open_on_output: None,
4711- },
4712- Workspace {
4713- name: WorkspaceName(
4714- "workspace-3",
4715- ),
4716- open_on_output: None,
4717- },
4718- ],
4719- }
4720 "#);4720 "#);
4721 }4721 }
4722 4722