beansprout-custom/examples/config.kdl
Ben Buhse 6d4352a217
Implement floating windows
As of this commit, there's not-yet a way to resize or move floating
windows, but it's possible to create one and focus through all windows.

Floating windows are always above tiled windows and, if floating window
is focused, that window is always above any another floating windows.

Windows have a separate float_{x, y, width, height} to remember their
floating location if they go from float=>tiled=>float again.
2026-02-05 17:14:46 -06:00

31 lines
896 B
Text

attach_mode top
focus_follows_pointer #true
pointer_warp_on_focus_change #true
borders {
width 2
color_focused "0x89b4fa"
color_unfocused "0x1e1e2e"
}
keybinds {
spawn Mod4 T foot
focus_next_window Mod4 J
focus_prev_window Mod4 K
focus_next_output Mod4+Shift J
focus_prev_output Mod4+Shift K
send_to_next_output Mod1+Shift J
send_to_prev_output Mod1+Shift K
zoom Mod4 Z
toggle_float Mod4+Shift F
change_ratio Mod4 H +0.05
change_ratio Mod4 L -0.05
increment_primary_count Mod4 I
decrement_primary_count Mod4 D
reload_config Mod4+Shift R
toggle_fullscreen Mod4 F
close_window Mod4+Shift Q
// Generates keybinds for keys 1-9 → tags 1<<0 through 1<<9
tag_bind Mod4 set_output_tags
tag_bind Mod4+shift set_window_tags
tag_bind Mod4+ctrl toggle_output_tags
tag_bind Mod4+ctrl+shift toggle_window_tags
}