GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: progress on command parsing
Lars Berger160b2c239b14
diff --git a/.editorconfig b/.editorconfigindex b775e8c2..059dec18 100644--- a/.editorconfig+++ b/.editorconfig@@ -1,225 +1,225 @@-# To learn more about .editorconfig see https://aka.ms/editorconfigdocs--###############################-# Core EditorConfig Options #-###############################--# All files-[*]-indent_style = space-end_of_line = crlf--# Code files-[*.{cs,yaml,xaml,json,csproj}]-indent_size = 2-insert_final_newline = true-charset = utf-8--###############################-# .NET Coding Conventions #-###############################--[*.{cs}]-# Default Severity for all .NET Code Style rules below.-dotnet_analyzer_diagnostic.severity = warning--[*.{cs}]-# Organize usings.-dotnet_sort_system_directives_first = true--# this. preferences.-dotnet_style_qualification_for_field = false-dotnet_style_qualification_for_property = false-dotnet_style_qualification_for_method = false-dotnet_style_qualification_for_event = false--# Language keywords vs BCL types preferences.-dotnet_style_predefined_type_for_locals_parameters_members = true-dotnet_style_predefined_type_for_member_access = true--# Parentheses preferences.-dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity-dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity-dotnet_style_parentheses_in_other_binary_operators = always_for_clarity-dotnet_style_parentheses_in_other_operators = never_if_unnecessary--# Modifier preferences.-dotnet_style_require_accessibility_modifiers = for_non_interface_members-dotnet_style_readonly_field = true--# Expression-level preferences-dotnet_style_object_initializer = true-dotnet_style_collection_initializer = true-dotnet_style_explicit_tuple_names = true-dotnet_style_null_propagation = true-dotnet_style_coalesce_expression = true-dotnet_style_prefer_is_null_check_over_reference_equality_method = true-dotnet_style_prefer_inferred_tuple_names = true-dotnet_style_prefer_inferred_anonymous_type_member_names = true-dotnet_style_prefer_auto_properties = true-dotnet_style_prefer_conditional_expression_over_assignment = true-dotnet_style_prefer_conditional_expression_over_return = false--###############################-# Naming Conventions #-###############################--# Style Definitions.-dotnet_naming_style.pascal_case_style.capitalization = pascal_case--# Use PascalCase for constant fields-dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion-dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields-dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style-dotnet_naming_symbols.constant_fields.applicable_kinds = field-dotnet_naming_symbols.constant_fields.applicable_accessibilities = *-dotnet_naming_symbols.constant_fields.required_modifiers = const--###############################-# C# Coding Conventions #-###############################--[*.cs]-# var preferences.-csharp_style_var_for_built_in_types = true-csharp_style_var_when_type_is_apparent = true-csharp_style_var_elsewhere = true--# Expression-bodied members.-csharp_style_expression_bodied_methods = false-csharp_style_expression_bodied_constructors = false-csharp_style_expression_bodied_operators = false-csharp_style_expression_bodied_properties = true-csharp_style_expression_bodied_indexers = true-csharp_style_expression_bodied_accessors = true--# Pattern matching preferences.-csharp_style_pattern_matching_over_is_with_cast_check = true-csharp_style_pattern_matching_over_as_with_null_check = true--# Null-checking preferences.-csharp_style_throw_expression = true-csharp_style_conditional_delegate_call = true--# Modifier preferences.-csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async--# Expression-level preferences.-csharp_prefer_braces = true-csharp_style_deconstructed_variable_declaration = true-csharp_prefer_simple_default_expression = true-csharp_style_pattern_local_over_anonymous_function = true-csharp_style_inlined_variable_declaration = true-csharp_style_unused_value_expression_statement_preference = discard_variable:none--###############################-# C# Formatting Rules #-###############################--# New line preferences.-csharp_new_line_before_open_brace = all-csharp_new_line_before_else = true-csharp_new_line_before_catch = true-csharp_new_line_before_finally = true-csharp_new_line_before_members_in_object_initializers = true-csharp_new_line_before_members_in_anonymous_types = true-csharp_new_line_between_query_expression_clauses = true--# Indentation preferences.-csharp_indent_case_contents = true-csharp_indent_switch_labels = true-csharp_indent_labels = flush_left--# Space preferences.-csharp_space_after_cast = false-csharp_space_after_keywords_in_control_flow_statements = true-csharp_space_between_method_call_parameter_list_parentheses = false-csharp_space_between_method_declaration_parameter_list_parentheses = false-csharp_space_between_parentheses = false-csharp_space_before_colon_in_inheritance_clause = true-csharp_space_after_colon_in_inheritance_clause = true-csharp_space_around_binary_operators = before_and_after-csharp_space_between_method_declaration_empty_parameter_list_parentheses = false-csharp_space_between_method_call_name_and_opening_parenthesis = false-csharp_space_between_method_call_empty_parameter_list_parentheses = false--# Wrapping preferences.-csharp_preserve_single_line_statements = true-csharp_preserve_single_line_blocks = true--###############################-# Analyzer Rules #-###############################--# Suppress 'async void lambda' warning in JetBrains editors.-resharper_async_void_lambda_highlighting = hint--roslynator_refactorings.enabled = true-roslynator_compiler_diagnostic_fixes.enabled = true--# Disable rule "Add braces (when expression spans over multiple lines)".-dotnet_diagnostic.IDE0011.severity = none-dotnet_diagnostic.RCS1001.severity = none-dotnet_diagnostic.RCS1003.severity = none--# Disable rule "Populate switch".-dotnet_diagnostic.IDE0072.severity = none--# Disable rule "Use bit shift operator".-dotnet_diagnostic.RCS1237.severity = none--# Disable rule "Add 'param' element to documentation comment".-dotnet_diagnostic.RCS1141.severity = none--# Disable rule "Add 'typeparam' element to documentation comment".-dotnet_diagnostic.RCS1142.severity = none--# Disable rule "Use pattern matching to avoid 'as' followed by a 'null' check".-dotnet_diagnostic.IDE0019.severity = none-dotnet_diagnostic.RCS1221.severity = none--# Disable rule "Declare enum member with zero value (when enum has FlagsAttribute)"-dotnet_diagnostic.RCS1135.severity = none--# Disable rule "Avoid NullReferenceException". Undecided whether to enable, since it can reduce-# clarity when a variable is guaranteed to be defined.-dotnet_diagnostic.RCS1202.severity = none--# TODO: Temporarily disabled.-# Disable rule "P/Invoke methods should not be visible".-dotnet_diagnostic.CA1401.severity = none--# TODO: Temporarily disabled.-# Disable rule "Duplicate enum value".-dotnet_diagnostic.RCS1234.severity = none-dotnet_diagnostic.CA1069.severity = none--# TODO: Temporarily disabled.-# Disable rule "Enum should declare explicit values".-dotnet_diagnostic.RCS1161.severity = none--# Disable rule "Do not declare visible instance fields".-dotnet_diagnostic.CA1051.severity = none--# Disable rule "Exception type is not sufficiently specific".-dotnet_diagnostic.CA2201.severity = none--# Disable rule "Identifiers should not have incorrect suffix".-dotnet_diagnostic.CA1711.severity = none--# Disable rule "Identifiers should not match keywords".-dotnet_diagnostic.CA1716.severity = none--# Disable rule "Use the LoggerMessage delegates".-dotnet_diagnostic.CA1848.severity = none--# TODO: Temporarily disabled.-# Disable rule "Avoid 'StringBuilder' parameters for P/Invokes".-dotnet_diagnostic.CA1838.severity = none--# Add rule exception "Types that own disposable fields should be disposable".-[**/Bus.cs]-dotnet_diagnostic.CA1001.severity = none+# # To learn more about .editorconfig see https://aka.ms/editorconfigdocs++# ###############################+# # Core EditorConfig Options #+# ###############################++# # All files+# [*]+# indent_style = space+# end_of_line = crlf++# # Code files+# [*.{cs,yaml,xaml,json,csproj}]+# indent_size = 2+# insert_final_newline = true+# charset = utf-8++# ###############################+# # .NET Coding Conventions #+# ###############################++# [*.{cs}]+# # Default Severity for all .NET Code Style rules below.+# dotnet_analyzer_diagnostic.severity = warning++# [*.{cs}]+# # Organize usings.+# dotnet_sort_system_directives_first = true++# # this. preferences.+# dotnet_style_qualification_for_field = false+# dotnet_style_qualification_for_property = false+# dotnet_style_qualification_for_method = false+# dotnet_style_qualification_for_event = false++# # Language keywords vs BCL types preferences.+# dotnet_style_predefined_type_for_locals_parameters_members = true+# dotnet_style_predefined_type_for_member_access = true++# # Parentheses preferences.+# dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity+# dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity+# dotnet_style_parentheses_in_other_binary_operators = always_for_clarity+# dotnet_style_parentheses_in_other_operators = never_if_unnecessary++# # Modifier preferences.+# dotnet_style_require_accessibility_modifiers = for_non_interface_members+# dotnet_style_readonly_field = true++# # Expression-level preferences+# dotnet_style_object_initializer = true+# dotnet_style_collection_initializer = true+# dotnet_style_explicit_tuple_names = true+# dotnet_style_null_propagation = true+# dotnet_style_coalesce_expression = true+# dotnet_style_prefer_is_null_check_over_reference_equality_method = true+# dotnet_style_prefer_inferred_tuple_names = true+# dotnet_style_prefer_inferred_anonymous_type_member_names = true+# dotnet_style_prefer_auto_properties = true+# dotnet_style_prefer_conditional_expression_over_assignment = true+# dotnet_style_prefer_conditional_expression_over_return = false++# ###############################+# # Naming Conventions #+# ###############################++# # Style Definitions.+# dotnet_naming_style.pascal_case_style.capitalization = pascal_case++# # Use PascalCase for constant fields+# dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion+# dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields+# dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style+# dotnet_naming_symbols.constant_fields.applicable_kinds = field+# dotnet_naming_symbols.constant_fields.applicable_accessibilities = *+# dotnet_naming_symbols.constant_fields.required_modifiers = const++# ###############################+# # C# Coding Conventions #+# ###############################++# [*.cs]+# # var preferences.+# csharp_style_var_for_built_in_types = true+# csharp_style_var_when_type_is_apparent = true+# csharp_style_var_elsewhere = true++# # Expression-bodied members.+# csharp_style_expression_bodied_methods = false+# csharp_style_expression_bodied_constructors = false+# csharp_style_expression_bodied_operators = false+# csharp_style_expression_bodied_properties = true+# csharp_style_expression_bodied_indexers = true+# csharp_style_expression_bodied_accessors = true++# # Pattern matching preferences.+# csharp_style_pattern_matching_over_is_with_cast_check = true+# csharp_style_pattern_matching_over_as_with_null_check = true++# # Null-checking preferences.+# csharp_style_throw_expression = true+# csharp_style_conditional_delegate_call = true++# # Modifier preferences.+# csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async++# # Expression-level preferences.+# csharp_prefer_braces = true+# csharp_style_deconstructed_variable_declaration = true+# csharp_prefer_simple_default_expression = true+# csharp_style_pattern_local_over_anonymous_function = true+# csharp_style_inlined_variable_declaration = true+# csharp_style_unused_value_expression_statement_preference = discard_variable:none++# ###############################+# # C# Formatting Rules #+# ###############################++# # New line preferences.+# csharp_new_line_before_open_brace = all+# csharp_new_line_before_else = true+# csharp_new_line_before_catch = true+# csharp_new_line_before_finally = true+# csharp_new_line_before_members_in_object_initializers = true+# csharp_new_line_before_members_in_anonymous_types = true+# csharp_new_line_between_query_expression_clauses = true++# # Indentation preferences.+# csharp_indent_case_contents = true+# csharp_indent_switch_labels = true+# csharp_indent_labels = flush_left++# # Space preferences.+# csharp_space_after_cast = false+# csharp_space_after_keywords_in_control_flow_statements = true+# csharp_space_between_method_call_parameter_list_parentheses = false+# csharp_space_between_method_declaration_parameter_list_parentheses = false+# csharp_space_between_parentheses = false+# csharp_space_before_colon_in_inheritance_clause = true+# csharp_space_after_colon_in_inheritance_clause = true+# csharp_space_around_binary_operators = before_and_after+# csharp_space_between_method_declaration_empty_parameter_list_parentheses = false+# csharp_space_between_method_call_name_and_opening_parenthesis = false+# csharp_space_between_method_call_empty_parameter_list_parentheses = false++# # Wrapping preferences.+# csharp_preserve_single_line_statements = true+# csharp_preserve_single_line_blocks = true++# ###############################+# # Analyzer Rules #+# ###############################++# # Suppress 'async void lambda' warning in JetBrains editors.+# resharper_async_void_lambda_highlighting = hint++# roslynator_refactorings.enabled = true+# roslynator_compiler_diagnostic_fixes.enabled = true++# # Disable rule "Add braces (when expression spans over multiple lines)".+# dotnet_diagnostic.IDE0011.severity = none+# dotnet_diagnostic.RCS1001.severity = none+# dotnet_diagnostic.RCS1003.severity = none++# # Disable rule "Populate switch".+# dotnet_diagnostic.IDE0072.severity = none++# # Disable rule "Use bit shift operator".+# dotnet_diagnostic.RCS1237.severity = none++# # Disable rule "Add 'param' element to documentation comment".+# dotnet_diagnostic.RCS1141.severity = none++# # Disable rule "Add 'typeparam' element to documentation comment".+# dotnet_diagnostic.RCS1142.severity = none++# # Disable rule "Use pattern matching to avoid 'as' followed by a 'null' check".+# dotnet_diagnostic.IDE0019.severity = none+# dotnet_diagnostic.RCS1221.severity = none++# # Disable rule "Declare enum member with zero value (when enum has FlagsAttribute)"+# dotnet_diagnostic.RCS1135.severity = none++# # Disable rule "Avoid NullReferenceException". Undecided whether to enable, since it can reduce+# # clarity when a variable is guaranteed to be defined.+# dotnet_diagnostic.RCS1202.severity = none++# # TODO: Temporarily disabled.+# # Disable rule "P/Invoke methods should not be visible".+# dotnet_diagnostic.CA1401.severity = none++# # TODO: Temporarily disabled.+# # Disable rule "Duplicate enum value".+# dotnet_diagnostic.RCS1234.severity = none+# dotnet_diagnostic.CA1069.severity = none++# # TODO: Temporarily disabled.+# # Disable rule "Enum should declare explicit values".+# dotnet_diagnostic.RCS1161.severity = none++# # Disable rule "Do not declare visible instance fields".+# dotnet_diagnostic.CA1051.severity = none++# # Disable rule "Exception type is not sufficiently specific".+# dotnet_diagnostic.CA2201.severity = none++# # Disable rule "Identifiers should not have incorrect suffix".+# dotnet_diagnostic.CA1711.severity = none++# # Disable rule "Identifiers should not match keywords".+# dotnet_diagnostic.CA1716.severity = none++# # Disable rule "Use the LoggerMessage delegates".+# dotnet_diagnostic.CA1848.severity = none++# # TODO: Temporarily disabled.+# # Disable rule "Avoid 'StringBuilder' parameters for P/Invokes".+# dotnet_diagnostic.CA1838.severity = none++# # Add rule exception "Types that own disposable fields should be disposable".+# [**/Bus.cs]+# dotnet_diagnostic.CA1001.severity = none-[**/*.xaml.cs]-dotnet_diagnostic.RCS1043.severity = none+# [**/*.xaml.cs]+# dotnet_diagnostic.RCS1043.severity = nonediff --git a/packages/wm/src/cli.rs b/packages/wm/src/cli.rsindex 4faafac3..df1de5ef 100644--- a/packages/wm/src/cli.rs+++ b/packages/wm/src/cli.rs@@ -23,4 +23,7 @@ pub enum CliCommand {binding_mode: bool,focused_container: bool,},++ /// Run a window manager command.+ Cmd {},}diff --git a/packages/wm/src/containers/container.rs b/packages/wm/src/containers/container.rsindex af051fbe..3b67078c 100644--- a/packages/wm/src/containers/container.rs+++ b/packages/wm/src/containers/container.rs@@ -169,4 +169,7 @@ impl Container {// .unwrap(),// }// }++ // pub fn parent_workspace(&self) -> Option<Rc<RefCell<Container>>> {}+ // pub fn parent_monitor(&self) -> Option<Rc<RefCell<Container>>> {}}diff --git a/packages/wm/src/user_config.rs b/packages/wm/src/user_config.rsindex 3e3db3bb..3b120715 100644--- a/packages/wm/src/user_config.rs+++ b/packages/wm/src/user_config.rs@@ -23,6 +23,9 @@ pub struct BindingModeConfig {/// Name of the binding mode.pub name: String,+ /// Display name of the binding mode.+ pub display_name: Option<String>,+/// Keybindings that will be active when the binding mode is active.pub keybindings: Vec<KeybindingConfig>,}diff --git a/packages/wm/src/wm_command.rs b/packages/wm/src/wm_command.rsindex 885aec61..493569e8 100644--- a/packages/wm/src/wm_command.rs+++ b/packages/wm/src/wm_command.rs@@ -1,14 +1,14 @@-use std::string;-use anyhow::{bail, Result};use serde::{Deserialize, Deserializer};-use crate::common::{Direction, TilingDirection};+use crate::common::{Direction, LengthUnit, TilingDirection};#[derive(Debug)]pub enum WmCommand {CloseWindow,+ DisableBindingMode(String),ExitWm,+ EnableBindingMode(String),FocusInDirection(Direction),FocusRecentWorkspace,FocusWorkspaceInSequence,@@ -20,7 +20,11 @@ pub enum WmCommand {Noop,Redraw,ReloadConfig,+ ResizeWindowWidth(LengthUnit),+ ResizeWindowHeight(LengthUnit),SetTilingDirection(TilingDirection),+ SetWindowBorders(LengthUnit),+ SetWindowFloating,ToggleTilingDirection,ToggleFocusMode,}@@ -32,12 +36,18 @@ impl WmCommand {let command = match parts.as_slice() {["close_window"] => WmCommand::CloseWindow,["exit_wm"] => WmCommand::ExitWm,+ ["disable_binding_mode", name] => {+ WmCommand::DisableBindingMode(name.to_string())+ }["focus", direction] => {WmCommand::FocusInDirection(Direction::from_str(direction)?)}["focus_workspace", name] => {WmCommand::FocusWorkspace(name.to_string())}+ ["enable_binding_mode", name] => {+ WmCommand::EnableBindingMode(name.to_string())+ }["ignore_window"] => WmCommand::IgnoreWindow,["move_window", direction] => {WmCommand::MoveWindow(Direction::from_str(direction)?)diff --git a/packages/wm/src/wm_state.rs b/packages/wm/src/wm_state.rsindex 40facdf4..7374e2a3 100644--- a/packages/wm/src/wm_state.rs+++ b/packages/wm/src/wm_state.rs@@ -1,4 +1,9 @@-use std::{borrow::BorrowMut, cell::RefCell, rc::Rc, sync::Arc};+use std::{+ borrow::BorrowMut,+ cell::RefCell,+ rc::{Rc, Weak},+ sync::Arc,+};use tokio::sync::Mutex;use uuid::Uuid;@@ -6,7 +11,7 @@ use crate::{common::FocusMode,containers::{Container, ContainerType, RootContainer},monitors::Monitor,- user_config::UserConfig,+ user_config::{BindingModeConfig, UserConfig},};pub struct WmState {@@ -15,14 +20,14 @@ pub struct WmState {root_container: RootContainer,/// Containers (and their descendants) that have a pending redraw.- containers_to_redraw: Vec<Arc<Container>>,+ containers_to_redraw: Vec<Weak<Container>>,/// Whether native focus needs to be reassigned to the WM's focused/// container.has_pending_focus_sync: bool,- /// Name of the currently active binding mode (if one is active).- active_binding_mode: Option<String>,+ /// Currently enabled binding modes.+ binding_modes: Vec<BindingModeConfig>,/// Parsed user config.config: Arc<Mutex<UserConfig>>,@@ -34,7 +39,7 @@ impl WmState {root_container: RootContainer::new(),containers_to_redraw: Vec::new(),has_pending_focus_sync: false,- active_binding_mode: None,+ binding_modes: Vec::new(),config,}}diff --git a/resources/sample-config.yaml b/resources/sample-config.yamlindex 7435bd96..4510aba5 100644--- a/resources/sample-config.yaml+++ b/resources/sample-config.yaml@@ -13,7 +13,7 @@ general:show_floating_on_top: false# Amount to move floating windows by (eg. when using `alt+<hjkl>` on a floating window)- floating_window_move_amount: "5%"+ floating_window_move_amount: '5%'# Whether to center new floating windows.center_new_floating_windows: true@@ -21,202 +21,202 @@ general:# *Strongly* recommended to set to 'false'. Whether to globally enable/disable# window transition animations (on minimize, close, etc). Set to 'unchanged'# to make no setting changes.- window_animations: "unchanged"+ window_animations: 'unchanged'gaps:# Gap between adjacent windows.- inner_gap: "20px"+ inner_gap: '20px'# Gap between windows and the screen edge.- outer_gap: "20px"+ outer_gap: '20px'-# Highlight active/inactive windows with a colored border.+# Highlight active and inactive windows with a colored border.# ** Exclusive to Windows 11 due to API limitations.focus_borders:active:enabled: true- color: "#0000ff"+ color: '#0000ff'inactive:enabled: false- color: "#ff0000"+ color: '#ff0000'workspaces:- - name: "1"- - name: "2"- - name: "3"- - name: "4"- - name: "5"- - name: "6"- - name: "7"- - name: "8"- - name: "9"+ - name: '1'+ - name: '2'+ - name: '3'+ - name: '4'+ - name: '5'+ - name: '6'+ - name: '7'+ - name: '8'+ - name: '9'window_rules:# Task Manager requires admin privileges to manage and should be ignored unless running# the WM as admin.- - commands: ["ignore"]- match_process_name: "/Taskmgr|ScreenClippingHost/"+ - commands: ['ignore_window']+ match_process_name: '/Taskmgr|ScreenClippingHost/'# Launches system dialogs as floating by default (eg. File Explorer save/open dialog).- - commands: ["set floating"]- match_class_name: "#32770"+ - commands: ['set floating']+ match_class_name: '#32770'# Do not manage picture-in-picture windows for browsers. Note that the default is for# English; change `match_title` to the window's title if you use another language.- - commands: ["ignore"]- match_title: "[Pp]icture.in.[Pp]icture"- match_class_name: "Chrome_WidgetWin_1|MozillaDialogClass"+ - commands: ['ignore_window']+ match_title: '[Pp]icture.in.[Pp]icture'+ match_class_name: 'Chrome_WidgetWin_1|MozillaDialogClass'# Some applications (eg. Steam) have borders that extend past the normal border size.- - commands: ["resize borders 0px -7px -7px -7px"]- match_process_name: "steam"+ - commands: ['resize borders 0px -7px -7px -7px']+ match_process_name: 'steam'binding_modes:- - name: "resize"+ - name: 'resize'keybindings:# Resize focused window by a percentage or pixel amount.- - commands: ["resize width -2%"]- bindings: ["H", "Left"]- - commands: ["resize width +2%"]- bindings: ["L", "Right"]- - commands: ["resize height +2%"]- bindings: ["K", "Up"]- - commands: ["resize height -2%"]- bindings: ["J", "Down"]+ - commands: ['resize_window_width -2%']+ bindings: ['H', 'Left']+ - commands: ['resize_window_width +2%']+ bindings: ['L', 'Right']+ - commands: ['resize_window_height +2%']+ bindings: ['K', 'Up']+ - commands: ['resize_window_height -2%']+ bindings: ['J', 'Down']# Press enter/escape to return to default keybindings.- - commands: ["binding mode none"]- bindings: ["Escape", "Enter"]+ - commands: ['disable_binding_mode resize']+ bindings: ['Escape', 'Enter']keybindings:# Shift focus in a given direction.- - commands: ["focus left"]- bindings: ["Alt+H", "Alt+Left"]- - commands: ["focus right"]- bindings: ["Alt+L", "Alt+Right"]- - commands: ["focus up"]- bindings: ["Alt+K", "Alt+Up"]- - commands: ["focus down"]- bindings: ["Alt+J", "Alt+Down"]+ - commands: ['focus left']+ bindings: ['Alt+H', 'Alt+Left']+ - commands: ['focus right']+ bindings: ['Alt+L', 'Alt+Right']+ - commands: ['focus up']+ bindings: ['Alt+K', 'Alt+Up']+ - commands: ['focus down']+ bindings: ['Alt+J', 'Alt+Down']# Move focused window in a given direction.- - commands: ["move left"]- bindings: ["Alt+Shift+H", "Alt+Shift+Left"]- - commands: ["move right"]- bindings: ["Alt+Shift+L", "Alt+Shift+Right"]- - commands: ["move up"]- bindings: ["Alt+Shift+K", "Alt+Shift+Up"]- - commands: ["move down"]- bindings: ["Alt+Shift+J", "Alt+Shift+Down"]+ - commands: ['move_window left']+ bindings: ['Alt+Shift+H', 'Alt+Shift+Left']+ - commands: ['move_window right']+ bindings: ['Alt+Shift+L', 'Alt+Shift+Right']+ - commands: ['move_window up']+ bindings: ['Alt+Shift+K', 'Alt+Shift+Up']+ - commands: ['move_window down']+ bindings: ['Alt+Shift+J', 'Alt+Shift+Down']# Resize focused window by a percentage or pixel amount.- - commands: ["resize width -2%"]- bindings: ["Alt+U"]- - commands: ["resize width +2%"]- bindings: ["Alt+P"]- - commands: ["resize height +2%"]- bindings: ["Alt+O"]- - commands: ["resize height -2%"]- bindings: ["Alt+I"]+ - commands: ['resize width -2%']+ bindings: ['Alt+U']+ - commands: ['resize width +2%']+ bindings: ['Alt+P']+ - commands: ['resize height +2%']+ bindings: ['Alt+O']+ - commands: ['resize height -2%']+ bindings: ['Alt+I']# As an alternative to the resize keybindings above, resize mode enables resizing via- # HJKL or arrow keys. The binding mode is defined above with the name "resize".- - commands: ["binding mode resize"]- bindings: ["Alt+R"]+ # HJKL or arrow keys. The binding mode is defined above with the name 'resize'.+ - commands: ['enable_binding_mode resize']+ bindings: ['Alt+R']# Change tiling direction. This determines where new tiling windows will be inserted.- - commands: ["tiling direction toggle"]- bindings: ["Alt+V"]+ - commands: ['toggle_tiling_direction']+ bindings: ['Alt+V']# Change focus between floating / tiling windows.- - commands: ["focus mode toggle"]- bindings: ["Alt+Space"]+ - commands: ['toggle_focus_mode']+ bindings: ['Alt+Space']# Change the focused window to be floating / tiling.- - commands: ["toggle floating"]- bindings: ["Alt+Shift+Space"]+ - commands: ['toggle floating']+ bindings: ['Alt+Shift+Space']# Change the focused window to be maximized / unmaximized.- - commands: ["toggle maximized"]- bindings: ["Alt+X"]+ - commands: ['toggle maximized']+ bindings: ['Alt+X']# Minimize focused window.- - commands: ["set minimized"]- bindings: ["Alt+M"]+ - commands: ['set minimized']+ bindings: ['Alt+M']# Close focused window.- - commands: ["close"]- bindings: ["Alt+Shift+Q"]+ - commands: ['close_window']+ bindings: ['Alt+Shift+Q']# Kill GlazeWM process safely.- - commands: ["exit wm"]- bindings: ["Alt+Shift+E"]+ - commands: ['exit_wm']+ bindings: ['Alt+Shift+E']# Re-evaluate configuration file.- - commands: ["reload config"]- bindings: ["Alt+Shift+R"]+ - commands: ['reload_config']+ bindings: ['Alt+Shift+R']# Launch CMD terminal (alternatively `exec wt` or `exec %ProgramFiles%/Git/git-bash.exe`# to start Windows Terminal and Git Bash respectively.- - commands: ["exec cmd"]- bindings: ["Alt+Enter"]+ - commands: ['exec cmd']+ bindings: ['Alt+Enter']# Focus the workspace that last had focus.- - commands: ["focus workspace recent"]- bindings: ["Alt+Y"]+ - commands: ['focus_workspace recent']+ bindings: ['Alt+Y']# Focus the next/previous workspace defined in `workspaces` config.- - commands: ["focus workspace next"]- bindings: ["Alt+T"]- - commands: ["focus workspace prev"]- bindings: ["Alt+Shift+T"]+ - commands: ['focus_workspace next']+ bindings: ['Alt+T']+ - commands: ['focus_workspace prev']+ bindings: ['Alt+Shift+T']# Change focus to a workspace defined in `workspaces` config.- - commands: ["focus workspace 1"]- bindings: ["Alt+1"]- - commands: ["focus workspace 2"]- bindings: ["Alt+2"]- - commands: ["focus workspace 3"]- bindings: ["Alt+3"]- - commands: ["focus workspace 4"]- bindings: ["Alt+4"]- - commands: ["focus workspace 5"]- bindings: ["Alt+5"]- - commands: ["focus workspace 6"]- bindings: ["Alt+6"]- - commands: ["focus workspace 7"]- bindings: ["Alt+7"]- - commands: ["focus workspace 8"]- bindings: ["Alt+8"]- - commands: ["focus workspace 9"]- bindings: ["Alt+9"]+ - commands: ['focus_workspace 1']+ bindings: ['Alt+1']+ - commands: ['focus_workspace 2']+ bindings: ['Alt+2']+ - commands: ['focus_workspace 3']+ bindings: ['Alt+3']+ - commands: ['focus_workspace 4']+ bindings: ['Alt+4']+ - commands: ['focus_workspace 5']+ bindings: ['Alt+5']+ - commands: ['focus_workspace 6']+ bindings: ['Alt+6']+ - commands: ['focus_workspace 7']+ bindings: ['Alt+7']+ - commands: ['focus_workspace 8']+ bindings: ['Alt+8']+ - commands: ['focus_workspace 9']+ bindings: ['Alt+9']# Move focused workspace to a monitor in a given direction.- - commands: ["move workspace left"]- bindings: ["Alt+A"]- - commands: ["move workspace right"]- bindings: ["Alt+F"]- - commands: ["move workspace up"]- bindings: ["Alt+D"]- - commands: ["move workspace down"]- bindings: ["Alt+S"]+ - commands: ['move_workspace left']+ bindings: ['Alt+A']+ - commands: ['move_workspace right']+ bindings: ['Alt+F']+ - commands: ['move_workspace up']+ bindings: ['Alt+D']+ - commands: ['move_workspace down']+ bindings: ['Alt+S']# Move focused window to a workspace defined in `workspaces` config.- - commands: ["move to workspace 1", "focus workspace 1"]- bindings: ["Alt+Shift+1"]- - commands: ["move to workspace 2", "focus workspace 2"]- bindings: ["Alt+Shift+2"]- - commands: ["move to workspace 3", "focus workspace 3"]- bindings: ["Alt+Shift+3"]- - commands: ["move to workspace 4", "focus workspace 4"]- bindings: ["Alt+Shift+4"]- - commands: ["move to workspace 5", "focus workspace 5"]- bindings: ["Alt+Shift+5"]- - commands: ["move to workspace 6", "focus workspace 6"]- bindings: ["Alt+Shift+6"]- - commands: ["move to workspace 7", "focus workspace 7"]- bindings: ["Alt+Shift+7"]- - commands: ["move to workspace 8", "focus workspace 8"]- bindings: ["Alt+Shift+8"]- - commands: ["move to workspace 9", "focus workspace 9"]- bindings: ["Alt+Shift+9"]+ - commands: ['move_window_to_workspace 1', 'focus_workspace 1']+ bindings: ['Alt+Shift+1']+ - commands: ['move_window_to_workspace 2', 'focus_workspace 2']+ bindings: ['Alt+Shift+2']+ - commands: ['move_window_to_workspace 3', 'focus_workspace 3']+ bindings: ['Alt+Shift+3']+ - commands: ['move_window_to_workspace 4', 'focus_workspace 4']+ bindings: ['Alt+Shift+4']+ - commands: ['move_window_to_workspace 5', 'focus_workspace 5']+ bindings: ['Alt+Shift+5']+ - commands: ['move_window_to_workspace 6', 'focus_workspace 6']+ bindings: ['Alt+Shift+6']+ - commands: ['move_window_to_workspace 7', 'focus_workspace 7']+ bindings: ['Alt+Shift+7']+ - commands: ['move_window_to_workspace 8', 'focus_workspace 8']+ bindings: ['Alt+Shift+8']+ - commands: ['move_window_to_workspace 9', 'focus_workspace 9']+ bindings: ['Alt+Shift+9']