My i3wm configuration
Add the following to /etc/udev/rules.d/98-monitor-hotplug.rules
:
KERNEL=="card0", SUBSYSTEM=="drm", ACTION=="change", ENV{DISPLAY}=":0.0", ENV{XUSER}="<USER>", RUN+="/bin/bash <PATH OF fix_monitors.sh>"
Without leader key:
- Capslock: Start launcher for desktop apps
- CtrlCapslock: Start launcher for terminal commands
- ShiftCapslock: Make scratchpad visible
- F11: Launch audio configuration
- F12: Launch WiFi configuration
With leader key (R-Window):
- General:
- ShiftR: Restart and reload config
- End: Bring up power menu (e.g., shutdown, restart, etc.)
- ShiftEnd: Lock screen
- Q: Quit window
- V: Launch clipboard manager
- Application shortcuts:
- Enter: Launch terminal
- Space: Launch browser
- W: Launch WhatsApp
- M: Launch Google Play Music
- C: Launch Google Calendar
- T: Launch Todoist
- =: Launch Calculator
- Screenshot
- Print: Save in clipboard
- Shift+Print: Save in ~/Screenshots
- Workspace movement:
- Alt←: Move current workspace to the left
- Alt→: Move current workspace to the right
- (Workspace Number): Move focus to a workspace
- `: Cycle workspaces in current display
- Shift`: Create a new workspace in current display
- Window layout:
- ShiftT: Tabbed layout
- Shift\ (
|
): Split horizontal - Shift- (
_
): Split vertical - F: Go fullscreen
- Window focus:
- Tab: Toggle focus between floating and tiled windows
- ShiftTab: Toggle floating for a window
- H/←: Focus window on left
- L/→: Focus window on right
- J/↓: Focus window below
- K/↑: Focus window above
- Window movement:
- ShiftH/Shift←: Move current window left
- ShiftL/Shift→: Move current window right
- ShiftJ/Shift↓: Move current window down
- ShiftK/Shift↑: Move current window up
- Shift(Workspace Number): Move current window to a workspace
- Window resizing:
- R: Enable resize mode
- H/←: Shrink window width
- L/→: Grow window width
- J/↓: Shrink window height
- K/↑: Grow window height