Files
dotfiles/.config/sway/config.d/keybinds.conf
2025-07-13 12:05:31 -04:00

47 lines
1.4 KiB
Plaintext

## Workspace
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+f1 workspace number 5
bindsym $mod+f2 workspace number 6
bindsym $mod+f3 workspace number 7
bindsym $mod+f4 workspace number 8
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+f1 move container to workspace number 5
bindsym $mod+Shift+f2 move container to workspace number 6
bindsym $mod+Shift+f3 move container to workspace number 7
bindsym $mod+Shift+f4 move container to workspace number 8
## Window management
bindsym $mod+escape kill
# Move focus
bindsym $mod+a focus left
bindsym $mod+s focus down
bindsym $mod+w focus up
bindsym $mod+d focus right
# Move window
bindsym $mod+Shift+a move left
bindsym $mod+Shift+s move down
bindsym $mod+Shift+w move up
bindsym $mod+Shift+d move right
bindsym $mod+Shift+f floating toggle
## Layout management
bindsym $mod+tab layout tabbed
## Utils
bindsym Print exec bash -c 'file=$(~/.local/bin/snag -d ~/screenshots/) && wl-copy < $file'
bindsym Print+Ctrl exec bash -c 'file=$(~/.local/bin/snag -r -d ~/screenshots/) && wl-copy < $file'