Skip to main content

Keybindings Reference

This page provides a complete reference of all keyboard shortcuts configured in Config-Sway. The configuration uses Vim-style HJKL navigation keys for consistency and efficiency.

Key Legend

The modifier key $mod is set to Mod4 (Super/Windows key) by default. All keybindings use this as the primary modifier.

Application Launchers

Quick access to frequently used applications:

Rofi Menus

Config-Sway includes several Rofi-based menus for quick access to common tasks:
Hacker Mode creates a custom terminal layout with:
  • Left pane: Main terminal shell
  • Top right: tty-clock displaying time
  • Bottom right: cava audio visualizer

Window Management

Control windows and their behavior:
The keybindings for floating toggle (Super+U), fullscreen (Super+P), and exit (Super+M) are commented out in the default config. Uncomment line 17 in ~/.config/sway/config if you need these.

Focus Navigation (Vim-style)

Move focus between windows using Vim-style HJKL keys:

Moving Floating Windows

Two modes for moving floating windows with different step sizes:

Small Movements (50px)

Large Movements (150px)

Resizing Floating Windows

Resize floating windows in 50px increments:

Workspace Management

Switching Workspaces

Moving Windows to Workspaces

The “magic” workspace is a special workspace accessible via Super+S. Use it as a scratchpad or temporary workspace for windows you want to access quickly.

Workspace Navigation with Mouse

Mouse Bindings

Enhance window management with mouse gestures:

Multimedia Keys

Audio Control

Control system audio with dedicated multimedia keys:
Audio controls use wpctl (WirePlumber) with a volume limit of 100% (-l 1) to prevent accidental audio damage.

Brightness Control

Brightness control uses exponential scaling (-e 4) and maintains a minimum value (-n 2) for better control at low brightness levels.

Media Playback

Control media playback with playerctl:

Notification Control (Mako)

Manage notifications with Mako:

Input Configuration

The following input settings are configured in ~/.config/sway/config:140-148:

Keyboard

  • Layouts: US and Latin American (us,latam)
  • Layout switching: Alt+Shift toggles between layouts

Touchpad

  • Tap to click: Enabled
  • Natural scrolling: Disabled
You can customize input settings by modifying the input blocks in ~/.config/sway/config. See the Sway input documentation for all available options.

Autostart Programs

These programs launch automatically when Sway starts:
The autostart.sh script automatically launches Firefox (workspace 1), VSCode (workspace 2), and Kitty (workspace 3) on startup. Comment out lines in ~/.config/scripts/autostart.sh if you don’t want these applications to start automatically.