Update windoof/.glzr/glazewm/config.yaml

This commit is contained in:
Alexander Pieck 2025-02-17 20:35:53 +00:00
parent c80e2b1272
commit 3216b737a7

View file

@ -1,10 +1,18 @@
general: general:
# Commands to run when the WM has started (e.g. to run a script or launch # Commands to run when the WM has started. This is useful for running a
# another application). Here we are running a batch script to start Zebar. # script or launching another application.
startup_commands: ['shell-exec --command %userprofile%/.glzr/zebar/start.bat'] # Example: The below command launches Zebar.
startup_commands: ['shell-exec zebar']
# Commands to run just before the WM is shutdown.
# Example: The below command kills Zebar.
shutdown_commands: ['shell-exec taskkill /IM zebar.exe /F']
# Commands to run after the WM config is reloaded.
config_reload_commands: []
# Whether to automatically focus windows underneath the cursor. # Whether to automatically focus windows underneath the cursor.
focus_follows_cursor: false focus_follows_cursor: true
# Whether to switch back and forth between the previously focused # Whether to switch back and forth between the previously focused
# workspace when focusing the current workspace. # workspace when focusing the current workspace.
@ -17,18 +25,33 @@ general:
# Trigger for cursor jump: # Trigger for cursor jump:
# - 'monitor_focus': Jump when focus changes between monitors. # - 'monitor_focus': Jump when focus changes between monitors.
# - 'window_focus': Jump when focus changes between windows. # - 'window_focus': Jump when focus changes between windows.
trigger: 'monitor_focus' trigger: 'window_focus'
# How windows should be hidden when switching workspaces.
# - 'cloak': Recommended. Hides windows with no animation.
# - 'hide': Legacy method (v3.5 and earlier) that has a brief animation,
# but has stability issues with some apps.
hide_method: 'cloak'
# Affects which windows get shown in the native Windows taskbar. Has no
# effect if `hide_method: 'hide'`.
# - 'true': Show all windows (regardless of workspace).
# - 'false': Only show windows from the currently shown workspaces.
show_all_in_taskbar: false
gaps: gaps:
# Whether to scale the gaps with the DPI of the monitor.
scale_with_dpi: true
# Gap between adjacent windows. # Gap between adjacent windows.
inner_gap: '2px' inner_gap: '2px'
# # Gap between windows and the screen edge. # Gap between windows and the screen edge.
outer_gap: outer_gap:
top: '32px' top: '42px'
right: '4px' right: '2px'
bottom: '4px' bottom: '4px'
left: '4px' left: '2px'
window_effects: window_effects:
# Visual effects to apply to the focused window. # Visual effects to apply to the focused window.
@ -36,13 +59,41 @@ window_effects:
# Highlight the window with a colored border. # Highlight the window with a colored border.
# ** Exclusive to Windows 11 due to API limitations. # ** Exclusive to Windows 11 due to API limitations.
border: border:
enabled: true
color: '#8dbcff'
# Remove the title bar from the window's frame. Note that this can
# cause rendering issues for some applications.
hide_title_bar:
enabled: false enabled: false
color: '#0000ff'
# Change the corner style of the window's frame.
# ** Exclusive to Windows 11 due to API limitations.
corner_style:
enabled: true
# Allowed values: 'square', 'rounded', 'small_rounded'.
style: 'small_rounded'
# Change the transparency of the window.
transparency:
enabled: false
# Can be something like '95%' or '0.95' for slightly transparent windows.
# '0' or '0%' is fully transparent (and, by consequence, unfocusable).
opacity: '95%'
# Visual effects to apply to non-focused windows. # Visual effects to apply to non-focused windows.
other_windows: other_windows:
border: border:
enabled: true
color: '#a1a1a1'
hide_title_bar:
enabled: false enabled: false
corner_style:
enabled: true
style: 'small_rounded'
transparency:
enabled: true
opacity: '85%'
window_behavior: window_behavior:
# New windows are created in this state whenever possible. # New windows are created in this state whenever possible.
@ -63,37 +114,21 @@ window_behavior:
fullscreen: fullscreen:
# Maximize the window if possible. If the window doesn't have a # Maximize the window if possible. If the window doesn't have a
# maximize button, then it'll be fullscreen'ed normally instead. # maximize button, then it'll be fullscreen'ed normally instead.
maximized: false maximized: true
# Whether to show fullscreen windows as always on top.
shown_on_top: true
workspaces: workspaces:
- name: "0" - name: '1'
display_name: " " - name: '2'
bind_to_monitor: 1 - name: '3'
keep_alive: true - name: '4'
- name: "1" - name: '5'
display_name: " " - name: '6'
bind_to_monitor: 2 - name: '7'
keep_alive: true - name: '8'
- name: "2" - name: '9'
display_name: " "
bind_to_monitor: 1
keep_alive: true
- name: "3"
display_name: "󱜠 "
bind_to_monitor: 2
keep_alive: true
- name: "4"
display_name: "󰴢 "
bind_to_monitor: 2
keep_alive: true
- name: "5"
display_name: "󰊻 "
bind_to_monitor: 2
- name: "6"
bind_to_monitor: 2
- name: "7"
- name: "8"
- name: "9"
window_rules: window_rules:
- commands: ['ignore'] - commands: ['ignore']
@ -105,6 +140,14 @@ window_rules:
- window_title: { regex: '[Pp]icture.in.[Pp]icture' } - window_title: { regex: '[Pp]icture.in.[Pp]icture' }
window_class: { regex: 'Chrome_WidgetWin_1|MozillaDialogClass' } window_class: { regex: 'Chrome_WidgetWin_1|MozillaDialogClass' }
# Ignore rules for various 3rd-party apps.
- window_process: { equals: 'PowerToys' }
window_class: { regex: 'HwndWrapper\[PowerToys\.PowerAccent.*?\]' }
- window_process: { equals: 'PowerToys' }
window_title: { regex: '.*? - Peek' }
- window_process: { equals: 'Lively' }
window_class: { regex: 'HwndWrapper' }
binding_modes: binding_modes:
# When enabled, the focused window can be resized via arrow keys or HJKL. # When enabled, the focused window can be resized via arrow keys or HJKL.
- name: 'resize' - name: 'resize'
@ -121,13 +164,6 @@ binding_modes:
- commands: ['wm-disable-binding-mode --name resize'] - commands: ['wm-disable-binding-mode --name resize']
bindings: ['escape', 'enter'] bindings: ['escape', 'enter']
# When enabled, all keybindings are disabled except for alt+shift+p which
# returns to default keybindings.
- name: 'pause'
keybindings:
- commands: ['wm-disable-binding-mode --name pause']
bindings: ['alt+shift+p']
keybindings: keybindings:
# Shift focus in a given direction. # Shift focus in a given direction.
- commands: ['focus --direction left'] - commands: ['focus --direction left']
@ -159,58 +195,82 @@ keybindings:
- commands: ['resize --height -2%'] - commands: ['resize --height -2%']
bindings: ['alt+shift+j'] bindings: ['alt+shift+j']
# ─< Change tiling direction. This determines where new tiling windows will >───────────── # As an alternative to the resize keybindings above, resize mode enables
# ─< be inserted. >─────────────────────────────────────────────────────────────────────── # resizing via arrow keys or HJKL. The binding mode is defined above with
- commands: ['toggle-tiling-direction'] # the name 'resize'.
bindings: ['alt+v'] # - commands: ['wm-enable-binding-mode --name resize']
# bindings: ['alt+r']
# ─< Change focus from tiling windows -> floating -> fullscreen. >──────────────────────── # Disables window management and all other keybindings until alt+shift+p
# is pressed again.
- commands: ['wm-toggle-pause']
bindings: ['alt+shift+p']
# Change tiling direction. This determines where new tiling windows will
# be inserted.
# - commands: ['toggle-tiling-direction']
# bindings: ['alt+v']
# Change focus from tiling windows -> floating -> fullscreen.
- commands: ['wm-cycle-focus'] - commands: ['wm-cycle-focus']
bindings: ['alt+space'] bindings: ['alt+space']
# ─< Change the focused window to be tiling. >──────────────────────────────────────────── # Change the focused window to be floating.
- commands: ['toggle-tiling'] - commands: ['toggle-floating --centered']
bindings: ['alt+shift+t']
# Change the focused window to be tiling.
# - commands: ['toggle-tiling']
# bindings: ['alt+t']
# Change the focused window to be fullscreen.
- commands: ['toggle-fullscreen']
bindings: ['alt+f'] bindings: ['alt+f']
# ─< Change the focused window to be fullscreen. >──────────────────────────────────────── # Minimize focused window.
- commands: ['toggle-fullscreen'] - commands: ['toggle-minimized']
bindings: ['alt+shift+f'] bindings: ['alt+m']
# ─< Close focused window. >────────────────────────────────────────────────────────────── # Close focused window.
- commands: ['close'] - commands: ['close']
bindings: ['alt+q'] bindings: ['alt+q']
# ─< Kill GlazeWM process safely. >─────────────────────────────────────────────────────── # Kill GlazeWM process safely.
- commands: ['wm-exit'] - commands: ['wm-exit']
bindings: ['alt+shift+m'] bindings: ['alt+m']
# ─< Re-evaluate configuration file. >──────────────────────────────────────────────────── # Re-evaluate configuration file.
- commands: ['wm-reload-config'] - commands: ['wm-reload-config']
bindings: ['alt+shift+r'] bindings: ['alt+shift+r']
# ─< Redraw all windows. >──────────────────────────────────────────────────────────────── # Redraw all windows.
- commands: ['wm-redraw'] - commands: ['wm-redraw']
bindings: ['alt+shift+w'] bindings: ['alt+shift+w']
# ─────────< Launch CMD terminal. Alternatively, use `shell-exec --command wt` or >───────── # Launch CMD terminal. Alternatively, use `shell-exec wt` or
# ────────< shell-exec --command %ProgramFiles%/Git/git-bash.exe` to start Windows >──────── # `shell-exec %ProgramFiles%/Git/git-bash.exe` to start Windows
# ─< Terminal and Git Bash respectively. >──────────────────────────────────────────────── # Terminal and Git Bash respectively.
- commands: ['shell-exec --command wt powershell'] - commands: ['shell-exec pwsh']
bindings: ['alt+enter'] bindings: ['alt+enter']
# ─< Ubuntu shortcut >────────────────────────────────────────────────────────────────────
- commands: ['shell-exec --command wt ubuntu2404.exe'] - commands: ['shell-exec wt ubuntu']
bindings: ['alt+t'] bindings: ['alt+t']
# ─< Explorer shortcut >──────────────────────────────────────────────────────────────────
- commands: ['shell-exec --command explorer.exe'] - commands: ['shell-exec explorer.exe']
bindings: ['alt+e'] bindings: ['alt+e']
- commands: ['shell-exec --command files.exe']
bindings: ['alt+shift+e'] - commands: ['shell-exec steam.exe']
# ─< Thorium shortcut >─────────────────────────────────────────────────────────────────── bindings: ['alt+shift+s']
- commands: ['shell-exec --command C:\Users\piecka\AppData\Local\Thorium\Application\thorium.exe']
bindings: ['alt+c'] # Focus the next/previous active workspace defined in `workspaces` config.
# ─< Obsidian shortcut >────────────────────────────────────────────────────────────────── - commands: ['focus --next-active-workspace']
- commands: ['shell-exec --command C:\Users\piecka\AppData\Local\Programs\obsidian\Obsidian.exe'] bindings: ['alt+s']
bindings: ['alt+o'] - commands: ['focus --prev-active-workspace']
bindings: ['alt+a']
# Focus the workspace that last had focus.
- commands: ['focus --recent-workspace']
bindings: ['alt+d']
# Change focus to a workspace defined in `workspaces` config. # Change focus to a workspace defined in `workspaces` config.
- commands: ['focus --workspace 1'] - commands: ['focus --workspace 1']
@ -231,8 +291,17 @@ keybindings:
bindings: ['alt+8'] bindings: ['alt+8']
- commands: ['focus --workspace 9'] - commands: ['focus --workspace 9']
bindings: ['alt+9'] bindings: ['alt+9']
- commands: ['focus --workspace 0']
bindings: ['alt+0'] # Move the focused window's parent workspace to a monitor in a given
# direction.
# - commands: ['move-workspace --direction left']
# bindings: ['alt+shift+a']
# - commands: ['move-workspace --direction right']
# bindings: ['alt+shift+f']
# - commands: ['move-workspace --direction up']
# bindings: ['alt+shift+d']
# - commands: ['move-workspace --direction down']
# bindings: ['alt+shift+s']
# Move focused window to a workspace defined in `workspaces` config. # Move focused window to a workspace defined in `workspaces` config.
- commands: ['move --workspace 1', 'focus --workspace 1'] - commands: ['move --workspace 1', 'focus --workspace 1']
@ -253,5 +322,3 @@ keybindings:
bindings: ['alt+shift+8'] bindings: ['alt+shift+8']
- commands: ['move --workspace 9', 'focus --workspace 9'] - commands: ['move --workspace 9', 'focus --workspace 9']
bindings: ['alt+shift+9'] bindings: ['alt+shift+9']
- commands: ['move --workspace 0', 'focus --workspace 0']
bindings: ['alt+shift+0']