39 lines
1,013 B
Nix
39 lines
1,013 B
Nix
{ config, ... }: {
|
|
text = ''
|
|
# Toggle tiling.
|
|
bindsym $mod+shift+f floating toggle
|
|
|
|
# Swap focus between the tiling area and the floating area
|
|
bindsym $mod+shift+r focus mode_toggle
|
|
|
|
# Move focus to the parent container
|
|
# bindsym $mod+a focus parent
|
|
|
|
# Split directions.
|
|
bindsym $mod+backslash splith
|
|
bindsym $mod+minus splitv
|
|
|
|
# Switch the current container between different layout styles.
|
|
bindsym $mod+Tab layout toggle split tabbed
|
|
|
|
# Fullscreen.
|
|
bindsym $mod+f fullscreen
|
|
|
|
# Drag floating windows by holding down $mod and left mouse button.
|
|
# Resize them with right mouse button + $mod.
|
|
# Despite the name, also works for non-floating windows.
|
|
# Change normal to inverse to use left mouse button for resizing and right
|
|
# mouse button for dragging.
|
|
floating_modifier $mod normal
|
|
|
|
# Kill focused window.
|
|
bindsym $mod+x kill
|
|
|
|
# Add gaps.
|
|
gaps inner ${toString config.style.window.gap}
|
|
|
|
# Launch everything tiled.
|
|
# for_window [all] floating disable
|
|
'';
|
|
}
|