Skip to content

Commit

Permalink
feat: improve sample config (glzr-io#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger authored and AryanSolanki637 committed Sep 18, 2023
1 parent 5eacdab commit 7d15369
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 18 deletions.
46 changes: 30 additions & 16 deletions GlazeWM.App/Resources/sample-config.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
gaps:
inner_gap: "20px"
outer_gap: 20

# Only supported for Windows 11 Build 22000.51 and above.
focus_border_color:
active:
enabled: true
color: "#7ce38b"
inactive:
enabled: false

general:
# Whether to automatically focus windows underneath the cursor.
focus_follows_cursor: false

# Whether to jump the cursor between windows focused by the WM.
cursor_follow_focus: false

# Whether to switch back and forth between the previously focused workspace
# when focusing the current workspace.
toggle_workspace_on_refocus: true

# Whether to show floating windows as always on top.
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%"
# When enabled, switching to the current workspace activates the previously focused workspace
toggle_workspace_on_refocus: false

# *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"

gaps:
# Gap between adjacent windows.
inner_gap: "20px"

# Gap between windows and the screen edge.
outer_gap: "20px"

# Highlight active/inactive windows with a colored border.
# ** Exclusive to Windows 11 due to API limitations.
focus_borders:
active:
enabled: true
color: "#0000ff"

inactive:
enabled: false
color: "#ff0000"

bar:
height: "30px"
position: "top"
Expand Down Expand Up @@ -58,7 +73,6 @@ bar:
# Documentation on formatting date/time string:
# https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings
time_formatting: "hh:mm tt ddd MMM d"
margin: "0 0 0 10px"

workspaces:
- name: "1"
Expand All @@ -75,7 +89,7 @@ window_rules:
# Task Manager requires admin privileges to manage and should be ignored unless running
# the WM as admin.
- command: "ignore"
match_process_name: "Taskmgr"
match_process_name: "/Taskmgr|ScreenClippingHost/"

# Launches system dialogs as floating by default (eg. File Explorer save/open dialog).
- command: "set floating"
Expand Down
4 changes: 2 additions & 2 deletions GlazeWM.Domain/UserConfigs/FocusBorderConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ public class FocusBordersConfig
/// <summary>
/// Border of the focused window.
/// </summary>
public FocusBorder Active { get; set; } = new() { Enabled = true, Color = "#7CE38B" };
public FocusBorder Active { get; set; } = new() { Enabled = false, Color = "#0000ff" };

/// <summary>
/// Border of non-focused windows.
/// </summary>
public FocusBorder Inactive { get; set; } = new() { Enabled = false };
public FocusBorder Inactive { get; set; } = new() { Enabled = false, Color = "#ff0000" };
}

public class FocusBorder
Expand Down

0 comments on commit 7d15369

Please sign in to comment.