Add documentation and example for window rules

This commit is contained in:
Ben Buhse 2026-02-18 16:13:16 -06:00
commit 5ca0b9d157
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
3 changed files with 67 additions and 2 deletions

View file

@ -18,11 +18,11 @@ borders {
color_focused "0x89b4fa"
color_unfocused "0x1e1e2e"
}
// Bar widget - shows the time
// Bar widget; shows the time
bar {
position top
}
// Tag overlay widget - shown briefly when switching tags
// Tag overlay widget; shown briefly when switching tags
// Remove this block to disable the overlay entirely
tag_overlay {
tag_amount 10
@ -35,6 +35,18 @@ tag_overlay {
square_inactive_border_color "0x6c7086"
square_inactive_occupied_color "0xcdd6f4"
}
// Window rules; applied once when a window first appears
// Rules are evaluated top-to-bottom; later rules override earlier ones
window_rules {
// Float Firefox picture-in-picture windows
float app_id="firefox" title="Picture-in-Picture"
// Float any window with "Preferences" in the title
float title="*Preferences*"
// Keep mpv windows tiled
no_float app_id="mpv"
// Send Slack to tag 3 (1<<2 = 0x0004)
tags 0x0004 app_id="Slack"
}
keybinds {
// Swap a window
spawn Mod4 T foot