172 lines
5.2 KiB
Plaintext
172 lines
5.2 KiB
Plaintext
# 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
|
|
|
|
bindsym {
|
|
# Toggle control center
|
|
$mod+Shift+n exec swaync-client -t -swa
|
|
# Lock configuration -> Managed by swaylock (~/.config/swaylock/config)
|
|
$mod+Escape exec loginctl lock-session
|
|
|
|
### Basic
|
|
|
|
# Start a terminal
|
|
$mod+Return exec $term
|
|
# Start explorer
|
|
$mod+e exec thunar
|
|
# Start browser
|
|
$mod+Shift+Return exec $browser
|
|
# Kill focused window
|
|
$mod+Shift+q kill
|
|
# Start your launcher
|
|
$mod+Space exec $menu
|
|
# Clipboard history
|
|
$mod+Shift+v exec $clip_menu
|
|
# Reload the configuration file
|
|
$mod+Shift+c reload
|
|
# Exit sway (logs you out of your Wayland session)
|
|
# $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
|
|
|
### Moving around
|
|
|
|
# Move your focus around
|
|
$mod+h focus left
|
|
$mod+j focus down
|
|
$mod+k focus up
|
|
$mod+l focus right
|
|
# Or use $mod+[up|down|left|right]
|
|
$mod+Left focus left
|
|
$mod+Down focus down
|
|
$mod+Up focus up
|
|
$mod+Right focus right
|
|
|
|
# Move the focused window with the same, but add Shift
|
|
$mod+Shift+h move left
|
|
$mod+Shift+j move down
|
|
$mod+Shift+k move up
|
|
$mod+Shift+l move right
|
|
# Ditto, with arrow keys
|
|
$mod+Shift+Left move left
|
|
$mod+Shift+Down move down
|
|
$mod+Shift+Up move up
|
|
$mod+Shift+Right move right
|
|
|
|
### Workspaces
|
|
# Note: workspaces can have any name you want, not just numbers.
|
|
# We just use 1-10 as the default.
|
|
|
|
# Switch to workspace
|
|
$mod+ampersand workspace number 1
|
|
$mod+1 workspace number 1
|
|
|
|
$mod+eacute workspace number 2
|
|
$mod+2 workspace number 2
|
|
|
|
$mod+quotedbl workspace number 3
|
|
$mod+3 workspace number 3
|
|
|
|
$mod+apostrophe workspace number 4
|
|
$mod+4 workspace number 4
|
|
|
|
$mod+parenleft workspace number 5
|
|
$mod+5 workspace number 5
|
|
|
|
$mod+minus workspace number 6
|
|
$mod+6 workspace number 6
|
|
|
|
$mod+egrave workspace number 7
|
|
$mod+7 workspace number 7
|
|
|
|
$mod+underscore workspace number 8
|
|
$mod+8 workspace number 8
|
|
|
|
$mod+ccedilla workspace number 9
|
|
$mod+9 workspace number 9
|
|
|
|
$mod+agrave workspace number 10
|
|
$mod+0 workspace number 10
|
|
|
|
# Move focused container to workspace
|
|
$mod+Shift+ampersand move container to workspace number 1
|
|
$mod+Shift+1 move container to workspace number 1
|
|
|
|
$mod+Shift+eacute move container to workspace number 2
|
|
$mod+Shift+2 move container to workspace number 2
|
|
|
|
$mod+Shift+quotedbl move container to workspace number 3
|
|
$mod+Shift+3 move container to workspace number 3
|
|
|
|
$mod+Shift+apostrophe move container to workspace number 4
|
|
$mod+Shift+4 move container to workspace number 4
|
|
|
|
$mod+Shift+parenleft move container to workspace number 5
|
|
$mod+Shift+5 move container to workspace number 5
|
|
|
|
$mod+Shift+minus move container to workspace number 6
|
|
$mod+Shift+6 move container to workspace number 6
|
|
|
|
$mod+Shift+egrave move container to workspace number 7
|
|
$mod+Shift+7 move container to workspace number 7
|
|
|
|
$mod+Shift+underscore move container to workspace number 8
|
|
$mod+Shift+8 move container to workspace number 8
|
|
|
|
$mod+Shift+ccedilla move container to workspace number 9
|
|
$mod+Shift+9 move container to workspace number 9
|
|
|
|
$mod+Shift+agrave move container to workspace number 10
|
|
$mod+Shift+0 move container to workspace number 10
|
|
|
|
### Layout stuff
|
|
|
|
# You can "split" the current object of your focus with
|
|
# $mod+b or $mod+v, for horizontal and vertical splits
|
|
# respectively.
|
|
# $mod+h splith
|
|
# $mod+v splitv
|
|
|
|
# Switch the current container between different layout styles
|
|
# $mod+s layout stacking
|
|
$mod+w layout tabbed
|
|
# $mod+e layout toggle split
|
|
|
|
# Make the current focus fullscreen
|
|
$mod+f fullscreen
|
|
|
|
# Toggle the current focus between tiling and floating mode
|
|
$mod+v floating toggle
|
|
|
|
# Swap focus between the tiling area and the floating area
|
|
$mod+Ctrl+v focus mode_toggle
|
|
|
|
# Move focus to the parent container
|
|
$mod+a focus parent
|
|
}
|
|
|
|
## Resizing containers:
|
|
|
|
mode "resize" {
|
|
# left will shrink the containers width
|
|
# right will grow the containers width
|
|
# up will shrink the containers height
|
|
# down will grow the containers height
|
|
bindsym h resize shrink width 10px
|
|
bindsym j resize grow height 10px
|
|
bindsym k resize shrink height 10px
|
|
bindsym l resize grow width 10px
|
|
|
|
# Ditto, with arrow keys
|
|
bindsym Left resize shrink width 10px
|
|
bindsym Down resize grow height 10px
|
|
bindsym Up resize shrink height 10px
|
|
bindsym Right resize grow width 10px
|
|
|
|
# Return to default mode
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
|
|
bindsym $mod+r mode "resize" |