My sway based desktop environment.
Makefile should install packages and setup DE:
make install
Then make sure the shell launches sway:
# ~/.zshenv example
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
dbus-run-session sway > ~/sway.log 2>&1
fi
Without leader key:
- ShiftF11: Launch audio configuration
- ShiftF12: Launch WiFi configuration
With leader key (R-Window):
- General:
- Space: Start launcher for desktop apps
- ShiftR: Restart and reload config
- End: Bring up power menu (i.e., shutdown and restart)
- Q: Quit window
- P: Launch clipboard manager
- Application shortcuts:
- Enter: Launch tmux (terminal)
- Backspace: Launch browser
- N: Launch Standard Notes
- Screenshot:
- Print: Save in clipboard
- ShiftPrint: Save in ~/screenshots
- Workspace movement:
- ` (Lever): Cycle workspaces in current display
- Ctrl↑: Switch to next workspace on display
- Ctrl↓: Switch to previous workspace on display
- Ctrl←: Switch to display on the left
- Ctrl→: Switch to display on the right
- Shift`: Move window to a new workspace
- Alt↑: Move current workspace to display above
- Alt↓: Move current workspace to the right
- (Workspace Number): Move focus to a workspace
- Window layout:
- Shift\ (
|
): Split horizontal - Shift- (
_
): Split vertical
- Shift\ (
- Window focus:
- Tab: Toggle floating for current window
- ShiftTab: Toggle focus between floating and tiled windows
- L/→: Focus window on right
- H/←: Focus window on left
- J/↓: Focus window below
- K/↑: Focus window above
- Window movement:
- Shift←: Move current window left
- Shift→: Move current window right
- Shift↓: Move current window down
- Shift↑: Move current window up
- Shift(Workspace Number): Move current window to a workspace
- Window resizing:
- R: Enable resize mode
- ←: Shrink window width
- →: Grow window width
- ↓: Shrink window height
- ↑: Grow window height
# To test
sudo keyd reload; sudo systemctl status keyd