This is my daily setup of the Sway.
- Waybar -- panel
- mako -- notification daemon
- swayidle -- idle management daemon. Replacement for the
xautolock
- rofi -- application launcher and dmenu replacement
- swaylock -- lock screen
pacman -S sway swayidle swaybg waybar mako rofi
Some interesting configs.
Build:
go get github.com/Difrex/gosway/ipc
cd scripts && go build -o ~/.local/bin/tr_in transparent_inctive.go
Enable:
cd conf-enabled
ln -s ../conf-available/transparent-windows.conf
Build:
go get github.com/Difrex/gosway/ipc
cd scripts && go build -o ~/.config/sway/scripts/floating_windows floating_windows.go
Enable:
cd conf-enabled
ln -s ../conf-available/scratchpads-select.conf
Keybinding: $mod Alt w
You need a swaymgr installed.
Enable:
cd conf-enabled
ln -s ../conf-available/autolayout.conf
autostart.conf
-- start applications on the startupidle.conf
-- swayidle settingswallpapers.conf
-- wallpapers configuration. Keybing to setup random wallpaper is: $mod Shift wlayout.conf
-- keyboard layout configuration
I always use Solarized themes.
cd conf-enabled
ln -s ../conf-available/colors-dark.conf
ln -s ../conf-available/mako-dark.conf
ln -s ../conf-available/termninal-dark.conf
cd ../waybar-enabled
ln -s ../waybar-available/style-dark.css style.css
cd conf-enabled
ln -s ../conf-available/colors-light.conf
ln -s ../conf-available/mako-light.conf
ln -s ../conf-available/termninal-light.conf
cd ../waybar-enabled
ln -s ../waybar-available/style-light.css style.css
$mod
is a Super(with windows logo) key.
- Kill focused window: $mod q
- Launch a terminal: $mod Return
- Rofi launcher: $mod d
- Emacsclient: $mod a
- Copy password with the pm: $mod p
- Lock screen with the swaylock: $mod l
- Resize: $mod r
- Make a screenshot(you need the grim and slurp): $mod c
- Move window to the scratchpad: $mod Shift minus
- Show scratchpad: $mod minus
- Show modeline for monitors configuration: $mod x
For a theme switching you need a wal
-
Switch to light theme: $mod Ctrl Shift l
-
Switch to dark theme: $mod Ctrl Shift d
-
Reload config: $mod Shift c
-
Shutdown a session: $mod Shift e