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 {
37503750 );
37513751
37523752 assert_debug_snapshot!(parsed, @r#"
3753- Config {
3754- input: Input {
3755- keyboard: Keyboard {
3756- xkb: Xkb {
3757- rules: "",
3758- model: "",
3759- layout: "us,ru",
3760- variant: "",
3761- options: Some(
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,
3753+ Config {
3754+ input: Input {
3755+ keyboard: Keyboard {
3756+ xkb: Xkb {
3757+ rules: "",
3758+ model: "",
3759+ layout: "us,ru",
3760+ variant: "",
3761+ options: Some(
3762+ "grp:win_space_toggle",
37893763 ),
3790- tap_button_map: Some(
3791- LeftMiddleRight,
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+ ),
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,
37923799 ),
3793- left_handed: false,
3794- disabled_on_external_mouse: true,
3795- middle_emulation: false,
3796- scroll_factor: Some(
3797- FloatOrInt(
3798- 0.9,
3799- ),
3800+ ),
3801+ },
3802+ mouse: Mouse {
3803+ off: false,
3804+ natural_scroll: true,
3805+ accel_speed: 0.4,
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,
38003820 ),
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,
38013881 },
3802- mouse: Mouse {
3882+ ),
3883+ workspace_auto_back_and_forth: true,
3884+ },
3885+ outputs: Outputs(
3886+ [
3887+ Output {
38033888 off: false,
3804- natural_scroll: true,
3805- accel_speed: 0.4,
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(
3889+ name: "eDP-1",
3890+ scale: Some(
38183891 FloatOrInt(
3819- 0.2,
3892+ 2.0,
38203893 ),
38213894 ),
3822- },
3823- trackpoint: Trackpoint {
3824- off: true,
3825- natural_scroll: true,
3826- accel_speed: 0.0,
3827- accel_profile: Some(
3828- Flat,
3895+ transform: Flipped90,
3896+ position: Some(
3897+ Position {
3898+ x: 10,
3899+ y: 20,
3900+ },
38293901 ),
3830- scroll_method: Some(
3831- OnButtonDown,
3902+ mode: Some(
3903+ ConfiguredMode {
3904+ width: 1920,
3905+ height: 1080,
3906+ refresh: Some(
3907+ 144.0,
3908+ ),
3909+ },
38323910 ),
3833- scroll_button: Some(
3834- 274,
3911+ variable_refresh_rate: Some(
3912+ Vrr {
3913+ on_demand: true,
3914+ },
38353915 ),
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+ },
38373922 },
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,
3923+ ],
3924+ ),
3925+ spawn_at_startup: [
3926+ SpawnAtStartup {
3927+ command: [
3928+ "alacritty",
3929+ "-e",
3930+ "fish",
3931+ ],
3932+ },
3933+ ],
3934+ layout: Layout {
3935+ focus_ring: FocusRing {
3936+ off: false,
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,
38533945 },
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- ],
3946+ inactive_color: Color {
3947+ r: 1.0,
3948+ g: 0.78431374,
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+ },
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,
38654001 ),
3866- map_to_output: Some(
3867- "eDP-1",
4002+ y: FloatOrInt(
4003+ -20.0,
38684004 ),
3869- left_handed: false,
38704005 },
3871- touch: Touch {
3872- map_to_output: Some(
3873- "eDP-1",
4006+ softness: FloatOrInt(
4007+ 30.0,
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,
38744034 ),
38754035 },
3876- disable_power_key_handling: true,
3877- warp_mouse_to_focus: true,
3878- focus_follows_mouse: Some(
3879- FocusFollowsMouse {
3880- max_scroll_amount: None,
3881- },
4036+ position: Top,
4037+ gaps_between_tabs: FloatOrInt(
4038+ 0.0,
4039+ ),
4040+ corner_radius: FloatOrInt(
4041+ 0.0,
38824042 ),
3883- workspace_auto_back_and_forth: true,
4043+ active_color: None,
4044+ inactive_color: None,
4045+ active_gradient: None,
4046+ inactive_gradient: None,
38844047 },
3885- outputs: Outputs(
3886- [
3887- Output {
3888- off: false,
3889- name: "eDP-1",
3890- scale: Some(
3891- FloatOrInt(
3892- 2.0,
3893- ),
3894- ),
3895- transform: Flipped90,
3896- position: Some(
3897- Position {
3898- x: 10,
3899- y: 20,
3900- },
3901- ),
3902- mode: Some(
3903- ConfiguredMode {
3904- width: 1920,
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,
4048+ insert_hint: InsertHint {
4049+ off: false,
4050+ color: Color {
4051+ r: 1.0,
4052+ g: 0.78431374,
4053+ b: 0.49803922,
4054+ a: 1.0,
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,
39204068 a: 1.0,
39214069 },
4070+ angle: 180,
4071+ relative_to: WorkspaceView,
4072+ in_: GradientInterpolation {
4073+ color_space: Srgb,
4074+ hue_interpolation: Shorter,
4075+ },
39224076 },
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+ ),
39244101 ),
3925- spawn_at_startup: [
3926- SpawnAtStartup {
3927- command: [
3928- "alacritty",
3929- "-e",
3930- "fish",
3931- ],
3932- },
4102+ preset_window_heights: [
4103+ Proportion(
4104+ 0.25,
4105+ ),
4106+ Proportion(
4107+ 0.5,
4108+ ),
4109+ Fixed(
4110+ 960,
4111+ ),
4112+ Fixed(
4113+ 1280,
4114+ ),
39334115 ],
3934- layout: Layout {
3935- focus_ring: FocusRing {
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+ ),
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 {
39364161 off: false,
3937- width: FloatOrInt(
3938- 5.0,
4162+ kind: Spring(
4163+ SpringParams {
4164+ damping_ratio: 1.0,
4165+ stiffness: 1000,
4166+ epsilon: 0.0001,
4167+ },
39394168 ),
3940- active_color: Color {
3941- r: 0.0,
3942- g: 0.39215687,
3943- b: 0.78431374,
3944- a: 1.0,
3945- },
3946- inactive_color: Color {
3947- r: 1.0,
3948- g: 0.78431374,
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- },
4169+ },
4170+ ),
4171+ window_open: WindowOpenAnim {
4172+ anim: Animation {
4173+ off: true,
4174+ kind: Easing(
4175+ EasingParams {
4176+ duration_ms: 150,
4177+ curve: EaseOutExpo,
39724178 },
39734179 ),
3974- inactive_gradient: None,
39754180 },
3976- border: Border {
4181+ custom_shader: None,
4182+ },
4183+ window_close: WindowCloseAnim {
4184+ anim: Animation {
39774185 off: false,
3978- width: FloatOrInt(
3979- 3.0,
4186+ kind: Easing(
4187+ EasingParams {
4188+ duration_ms: 150,
4189+ curve: EaseOutQuad,
4190+ },
39804191 ),
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,
39954192 },
3996- shadow: Shadow {
3997- on: false,
3998- offset: ShadowOffset {
3999- x: FloatOrInt(
4000- 10.0,
4001- ),
4002- y: FloatOrInt(
4003- -20.0,
4004- ),
4005- },
4006- softness: FloatOrInt(
4007- 30.0,
4008- ),
4009- spread: FloatOrInt(
4010- 5.0,
4193+ custom_shader: None,
4194+ },
4195+ horizontal_view_movement: HorizontalViewMovementAnim(
4196+ Animation {
4197+ off: false,
4198+ kind: Easing(
4199+ EasingParams {
4200+ duration_ms: 100,
4201+ curve: EaseOutExpo,
4202+ },
40114203 ),
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,
40204204 },
4021- tab_indicator: TabIndicator {
4205+ ),
4206+ window_movement: WindowMovementAnim(
4207+ Animation {
40224208 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,
4034- ),
4035- },
4036- position: Top,
4037- gaps_between_tabs: FloatOrInt(
4038- 0.0,
4039- ),
4040- corner_radius: FloatOrInt(
4041- 0.0,
4209+ kind: Spring(
4210+ SpringParams {
4211+ damping_ratio: 1.0,
4212+ stiffness: 800,
4213+ epsilon: 0.0001,
4214+ },
40424215 ),
4043- active_color: None,
4044- inactive_color: None,
4045- active_gradient: None,
4046- inactive_gradient: None,
40474216 },
4048- insert_hint: InsertHint {
4217+ ),
4218+ window_resize: WindowResizeAnim {
4219+ anim: Animation {
40494220 off: false,
4050- color: Color {
4051- r: 1.0,
4052- g: 0.78431374,
4053- b: 0.49803922,
4054- a: 1.0,
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- },
4221+ kind: Spring(
4222+ SpringParams {
4223+ damping_ratio: 1.0,
4224+ stiffness: 800,
4225+ epsilon: 0.0001,
40764226 },
40774227 ),
40784228 },
4079- preset_column_widths: [
4080- Proportion(
4081- 0.25,
4082- ),
4083- Proportion(
4084- 0.5,
4229+ custom_shader: None,
4230+ },
4231+ config_notification_open_close: ConfigNotificationOpenCloseAnim(
4232+ Animation {
4233+ off: false,
4234+ kind: Spring(
4235+ SpringParams {
4236+ damping_ratio: 0.6,
4237+ stiffness: 1000,
4238+ epsilon: 0.001,
4239+ },
40854240 ),
4086- Fixed(
4087- 960,
4241+ },
4242+ ),
4243+ screenshot_ui_open: ScreenshotUiOpenAnim(
4244+ Animation {
4245+ off: false,
4246+ kind: Easing(
4247+ EasingParams {
4248+ duration_ms: 200,
4249+ curve: EaseOutQuad,
4250+ },
40884251 ),
4089- Fixed(
4090- 1280,
4252+ },
4253+ ),
4254+ },
4255+ environment: Environment(
4256+ [
4257+ EnvironmentVariable {
4258+ name: "QT_QPA_PLATFORM",
4259+ value: Some(
4260+ "wayland",
40914261 ),
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+ },
40924288 ],
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(
40944323 DefaultPresetSize(
40954324 Some(
4096- Proportion(
4097- 0.25,
4325+ Fixed(
4326+ 500,
40984327 ),
40994328 ),
41004329 ),
41014330 ),
4102- preset_window_heights: [
4103- Proportion(
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,
4331+ open_on_output: Some(
4332+ "eDP-1",
41224333 ),
4123- struts: Struts {
4124- left: FloatOrInt(
4125- 1.0,
4126- ),
4127- right: FloatOrInt(
4128- 2.0,
4334+ open_on_workspace: None,
4335+ open_maximized: Some(
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+ ),
41294358 ),
4130- top: FloatOrInt(
4131- 3.0,
4359+ active_color: None,
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+ ),
41324371 ),
4133- bottom: FloatOrInt(
4134- 0.0,
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+ },
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+ },
41354395 ),
4396+ inactive_color: None,
4397+ active_gradient: None,
4398+ inactive_gradient: None,
41364399 },
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,
4400+ draw_border_with_background: None,
4401+ opacity: None,
4402+ geometry_corner_radius: None,
4403+ clip_to_geometry: None,
4404+ baba_is_float: None,
4405+ block_out_from: None,
4406+ variable_refresh_rate: None,
4407+ default_column_display: Some(
4408+ Tabbed,
41454409 ),
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 {
4161- off: false,
4162- kind: Spring(
4163- SpringParams {
4164- damping_ratio: 1.0,
4165- stiffness: 1000,
4166- epsilon: 0.0001,
4167- },
4410+ default_floating_position: Some(
4411+ FloatingPosition {
4412+ x: FloatOrInt(
4413+ 100.0,
4414+ ),
4415+ y: FloatOrInt(
4416+ -200.0,
41684417 ),
4418+ relative_to: BottomLeft,
41694419 },
41704420 ),
4171- window_open: WindowOpenAnim {
4172- anim: Animation {
4173- off: true,
4174- kind: Easing(
4175- EasingParams {
4176- duration_ms: 150,
4177- curve: EaseOutExpo,
4178- },
4421+ scroll_factor: None,
4422+ },
4423+ ],
4424+ layer_rules: [
4425+ LayerRule {
4426+ matches: [
4427+ Match {
4428+ namespace: Some(
4429+ RegexEq(
4430+ Regex(
4431+ "^notifications$",
4432+ ),
4433+ ),
41794434 ),
4435+ at_startup: None,
41804436 },
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,
41824452 },
4183- window_close: WindowCloseAnim {
4184- anim: Animation {
4185- off: false,
4186- kind: Easing(
4187- EasingParams {
4188- duration_ms: 150,
4189- curve: EaseOutQuad,
4190- },
4453+ geometry_corner_radius: None,
4454+ },
4455+ ],
4456+ binds: Binds(
4457+ [
4458+ Bind {
4459+ key: Key {
4460+ trigger: Keysym(
4461+ XK_Escape,
41914462 ),
4192- },
4193- custom_shader: None,
4194- },
4195- horizontal_view_movement: HorizontalViewMovementAnim(
4196- Animation {
4197- off: false,
4198- kind: Easing(
4199- EasingParams {
4200- duration_ms: 100,
4201- curve: EaseOutExpo,
4202- },
4463+ modifiers: Modifiers(
4464+ COMPOSITOR,
42034465 ),
42044466 },
4205- ),
4206- window_movement: WindowMovementAnim(
4207- Animation {
4208- off: false,
4209- kind: Spring(
4210- SpringParams {
4211- damping_ratio: 1.0,
4212- stiffness: 800,
4213- epsilon: 0.0001,
4214- },
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",
42154475 ),
4216- },
4217- ),
4218- window_resize: WindowResizeAnim {
4219- anim: Animation {
4220- off: false,
4221- kind: Spring(
4222- SpringParams {
4223- damping_ratio: 1.0,
4224- stiffness: 800,
4225- epsilon: 0.0001,
4226- },
4476+ ),
4477+ },
4478+ Bind {
4479+ key: Key {
4480+ trigger: Keysym(
4481+ XK_Escape,
4482+ ),
4483+ modifiers: Modifiers(
4484+ SHIFT | COMPOSITOR,
42274485 ),
42284486 },
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,
42304493 },
4231- config_notification_open_close: ConfigNotificationOpenCloseAnim(
4232- Animation {
4233- off: false,
4234- kind: Spring(
4235- SpringParams {
4236- damping_ratio: 0.6,
4237- stiffness: 1000,
4238- epsilon: 0.001,
4239- },
4494+ Bind {
4495+ key: Key {
4496+ trigger: Keysym(
4497+ XK_t,
42404498 ),
4241- },
4242- ),
4243- screenshot_ui_open: ScreenshotUiOpenAnim(
4244- Animation {
4245- off: false,
4246- kind: Easing(
4247- EasingParams {
4248- duration_ms: 200,
4249- curve: EaseOutQuad,
4250- },
4499+ modifiers: Modifiers(
4500+ COMPOSITOR,
42514501 ),
42524502 },
4253- ),
4254- },
4255- environment: Environment(
4256- [
4257- EnvironmentVariable {
4258- name: "QT_QPA_PLATFORM",
4259- value: Some(
4260- "wayland",
4503+ action: Spawn(
4504+ [
4505+ "alacritty",
4506+ ],
4507+ ),
4508+ repeat: true,
4509+ cooldown: None,
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,
42614518 ),
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- },
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- ),
4519+ modifiers: Modifiers(
4520+ COMPOSITOR,
43294521 ),
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,
43304530 ),
4331- open_on_output: Some(
4332- "eDP-1",
4333- ),
4334- open_on_workspace: None,
4335- open_maximized: Some(
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- ),
4531+ },
4532+ Bind {
4533+ key: Key {
4534+ trigger: Keysym(
4535+ XK_h,
43584536 ),
4359- active_color: None,
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- ),
4537+ modifiers: Modifiers(
4538+ SHIFT | COMPOSITOR,
43714539 ),
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,
43864540 },
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- },
4541+ action: FocusMonitorLeft,
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,
43954555 ),
4396- inactive_color: None,
4397- active_gradient: None,
4398- inactive_gradient: None,
43994556 },
4400- draw_border_with_background: None,
4401- opacity: None,
4402- geometry_corner_radius: None,
4403- clip_to_geometry: None,
4404- baba_is_float: None,
4405- block_out_from: 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,
4557+ action: MoveWindowToMonitorRight,
4558+ repeat: true,
4559+ cooldown: None,
4560+ allow_when_locked: false,
4561+ allow_inhibiting: true,
4562+ hotkey_overlay_title: None,
44224563 },
4423- ],
4424- layer_rules: [
4425- LayerRule {
4426- matches: [
4427- Match {
4428- namespace: Some(
4429- RegexEq(
4430- Regex(
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,
4564+ Bind {
4565+ key: Key {
4566+ trigger: Keysym(
4567+ XK_comma,
4568+ ),
4569+ modifiers: Modifiers(
4570+ COMPOSITOR,
4571+ ),
44524572 },
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,
44544579 },
4455- ],
4456- binds: Binds(
4457- [
4458- Bind {
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- ),
4580+ Bind {
4581+ key: Key {
4582+ trigger: Keysym(
4583+ XK_1,
44764584 ),
4477- },
4478- Bind {
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- ],
4585+ modifiers: Modifiers(
4586+ COMPOSITOR,
45074587 ),
4508- repeat: true,
4509- cooldown: None,
4510- allow_when_locked: true,
4511- allow_inhibiting: true,
4512- hotkey_overlay_title: None,
45134588 },
4514- Bind {
4515- key: Key {
4516- trigger: Keysym(
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,
4589+ action: FocusWorkspace(
4590+ Index(
4591+ 1,
45304592 ),
4531- },
4532- Bind {
4533- key: Key {
4534- trigger: Keysym(
4535- XK_h,
4536- ),
4537- modifiers: Modifiers(
4538- SHIFT | COMPOSITOR,
4539- ),
4540- },
4541- action: FocusMonitorLeft,
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+ ),
4594+ repeat: true,
4595+ cooldown: None,
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,
45934604 ),
4594- repeat: true,
4595- cooldown: None,
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- ),
4605+ modifiers: Modifiers(
4606+ SHIFT | COMPOSITOR,
46134607 ),
4614- repeat: true,
4615- cooldown: None,
4616- allow_when_locked: false,
4617- allow_inhibiting: true,
4618- hotkey_overlay_title: None,
46194608 },
4620- Bind {
4621- key: Key {
4622- trigger: Keysym(
4623- XK_e,
4624- ),
4625- modifiers: Modifiers(
4626- SHIFT | COMPOSITOR,
4627- ),
4628- },
4629- action: Quit(
4630- true,
4609+ action: FocusWorkspace(
4610+ Name(
4611+ "workspace-1",
4612+ ),
4613+ ),
4614+ repeat: true,
4615+ cooldown: None,
4616+ allow_when_locked: false,
4617+ allow_inhibiting: true,
4618+ hotkey_overlay_title: None,
4619+ },
4620+ Bind {
4621+ key: Key {
4622+ trigger: Keysym(
4623+ XK_e,
4624+ ),
4625+ modifiers: Modifiers(
4626+ SHIFT | COMPOSITOR,
46314627 ),
4632- repeat: true,
4633- cooldown: None,
4634- allow_when_locked: false,
4635- allow_inhibiting: false,
4636- hotkey_overlay_title: None,
46374628 },
4638- Bind {
4639- key: Key {
4640- trigger: WheelScrollDown,
4641- modifiers: Modifiers(
4642- COMPOSITOR,
4643- ),
4644- },
4645- action: FocusWorkspaceDown,
4646- repeat: true,
4647- cooldown: Some(
4648- 150ms,
4629+ action: Quit(
4630+ true,
4631+ ),
4632+ repeat: true,
4633+ cooldown: None,
4634+ allow_when_locked: false,
4635+ allow_inhibiting: false,
4636+ hotkey_overlay_title: None,
4637+ },
4638+ Bind {
4639+ key: Key {
4640+ trigger: WheelScrollDown,
4641+ modifiers: Modifiers(
4642+ COMPOSITOR,
46494643 ),
4650- allow_when_locked: false,
4651- allow_inhibiting: true,
4652- hotkey_overlay_title: None,
46534644 },
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+ },
46554667 ),
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- },
4668+ tablet_mode_off: Some(
4669+ SwitchAction {
4670+ spawn: [
4671+ "bash",
4672+ "-c",
4673+ "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false",
4674+ ],
4675+ },
4676+ ),
4677+ },
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",
46674701 ),
4668- tablet_mode_off: Some(
4669- SwitchAction {
4670- spawn: [
4671- "bash",
4672- "-c",
4673- "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false",
4674- ],
4675- },
4702+ open_on_output: Some(
4703+ "eDP-1",
46764704 ),
46774705 },
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",
4706+ Workspace {
4707+ name: WorkspaceName(
4708+ "workspace-2",
46884709 ),
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,
4710+ open_on_output: None,
46964711 },
4697- workspaces: [
4698- Workspace {
4699- name: WorkspaceName(
4700- "workspace-1",
4701- ),
4702- open_on_output: Some(
4703- "eDP-1",
4704- ),
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- }
4712+ Workspace {
4713+ name: WorkspaceName(
4714+ "workspace-3",
4715+ ),
4716+ open_on_output: None,
4717+ },
4718+ ],
4719+ }
47204720 "#);
47214721 }
47224722