My personalized configs for sway window manager, minimalistic in design and optimized for CLI productivity.
- Optimized for the CLI
- Comes with integrations for
foot
,mako
,waybar
and more - Minimalistic UI
- Optimized for AMOLED displays
sway
: the window managerfoot
: waylan terminal emulatorrofi
: with rofi2k as launcherwaybar
: adds toolbar supportmako
: notification daemongrimshot
: screenshot supportwf-recorder
: screen recorder supportcliphist
: for clipboard managementwluma
: adaptive brightness supportwlsunset
: sunset timing supportlight
: for display brightnesspython
: for scripts supportqutebrowser
: with qute2k as launchernmtui
: network manager clibluetuith
: bluetooth manager clipulsemixer
: audio manager clibmenu
: cli menu for utilities
# Arch
sudo pacman -S sway foot rofi waybar mako grimshot wf-recorder cliphist wluma wlsunset light python
# Debian
sudo apt install sway foot rofi waybar mako grimshot wf-recorder cliphist wluma wlsunset light python
# Fedora
sudo dnf install kvantum lxappearance kanshi calcurse
sway2k uses BWnB as gtk and Kvantum themes, for Firefox it uses Nightblue
Edit theme.conf to customize accordingly.
git clone https://github.com/2kabhishek/sway2k
ln -sfnv "$PWD/sway2k" ~/.config/sway
# To setup foot separately
ln -sfnv "$PWD/sway2k/foot" ~/.config/foot
# To setup waybar separately
ln -sfnv "$PWD/sway2k/waybar" ~/.config/waybar
Default apps and definitions are in definitions.conf
- Default launcher: rofi, with rofi2k
- Default browser: qutebrowser, with qute2k
- Default camera: guvcview
- Default terminal: foot
You can find keybindings in the modes dir
Default keybindings are same as i3 keybindings
Mod is the Super
key.
Shortcut | Action |
---|---|
Mod + Enter | Open Terminal |
Mod + Shift + Enter / F12 | Open Floating terminal |
Esc | Close floatin terminal, exit modes |
Mod + h/j/k/l | Switch focused window |
Mod + left/right/0-9 | Switch focused workspace |
Mod + up/down | Resize focused workspace |
Mod + Tab | Most recent workspace |
Mod + Shift + h/j/k/l/arrows | Move focused window within workspace |
Mod + Shift + 0-9 | Move focused window to workspace |
Mod + Alt + h/j/k/l/arrows | Move focused window between screens |
Mod + Shift + m | Move focused window to empty workspace |
Mod + n | Move to empty workspace |
Mod + Shift + n | Move focused window away |
Mod + Shift + c | Reload config |
Mod + Shift + b | Toggle waybar |
F11 / Mod + f | Full screen focused window |
Mod + Shift + f | Toggle floating |
Mod + Shift + w | Open default browser |
Mod + Shift + p | Open default camera app |
Mod + q | Close focused window |
Alt + Tab | Most recent / urgent window |
Alt + Shift + +/- | Zoom in / Zoom out |
Mod + Space | Open app launcher |
Mod + d | Open app launcher in empty workspace |
Mod + a | Open app switcher |
Mod + v | Open clipboard history |
Mod + . | Open emoji panel |
Shortcut | Action |
---|---|
Mod + r | Open resize mode |
h/j/k/l/arrows | Resize windows by 10px |
Shift + h/j/k/l/arrows | Resize windows by 50px |
+/Shift + = / - | Increase / Decrease gaps |
Esc / Enter | Exit mode |
Shortcut | Action |
---|---|
Mod + Shift + p | Open screenshot mode |
p | Select region to capture |
o | Capture full screen |
Shift + p / o | Capture with upload |
Esc | Exit mode |
Shortcut | Action |
---|---|
Mod + Shift + r | Open record mode |
r | Start recording |
Shift + r | Record with audio |
Esc | Exit mode |
Shortcut | Action |
---|---|
Mod + Shift + q | Open shutdown mode |
l | Lock |
s | Shutdown |
r | Reboot |
u | Sleep |
e | Logout |
Esc | Exit mode |
Comes with a bunch of customized waybar modules:
menu
: app launcherclock
: with calendar integrationweather
: powered by wttr.inmode
: sway modeswf-recorder
: screen recorder integrationpacman
: package manager integrationgithub
: GitHub notifications with gh clizeit
: task tracker integrationclipboard
: powered by cliphisttemperature
: cpu temperatures with sensorscpu
: cpu usage in percentagememory
: shows used ramidle-inhibitor
: controls idle screen turning offbattery
: shows battery usages and warningssunset
: location based gamma correctionadaptive-light
: brightness control powered by wlumabacklight
: brightness controlplayerctl
: controls media playbackpulseaudio
: controls audio devicesnetwork
: network connections powered by nmtuibluetooth
: bluetooth adapter controlsdnd
: mako dnd integrationstray
: system tray integration
A spiritual successor to awesome2k.
I have been using awesome wm for a while and wanted to try out wayland, so I jumped in to sway!
- Learned about wayland and sway APIs
- awesome2k β Xorg based tiling wm configs
β hit the star button if you found this useful β
Source | Blog | Twitter | LinkedIn | More Links | Other Projects