-
Notifications
You must be signed in to change notification settings - Fork 1.1k
i3 Migration Guide
Daniil Gentili edited this page Feb 11, 2022
·
89 revisions
Sway is almost a drop-in replacement for i3, but you may have to make a few changes to get everything working correctly. Here are a few common ones:
- Use the
output
command to configure outputs instead of xrandr - Use the
output
command to configure your wallpaper instead of feh - Use the
input
command to configure input devices - Replace usage of
i3-msg
,i3lock
, and so on, with the equivalent sway tools. - Sway handles quotes slightly differently - commands are handled more like shell commands
- To emulate
xset dpms force off
, useswayidle timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
then runpkill -USR1 swayidle
to trigger timeout immediately.
Sway does not support X logical font description (XLFD) configuration strings. Instead it uses Pango, and one can use pango-list | grep [fontname]
to confirm the correct font name. Pango, as of version 1.44, does not support older bitmap fonts (BFD), although it does support bitmap-only OTF fonts.
- xbacklight (backlight management) → light / brightnessctl
- dunst (notification daemon) → dunst (supports wayland) / mako / fnott / swaync
- feh (wallpaper setting) → sway output configuration, see
man 5 sway-output
(or oguri, which supports animated wallpapers) - scrot (screenshot) → grim + slurp (or grimshot, which wraps around both).
- picom / compton / xcompmgr (compositor) → built in
- unclutter (hiding cursor after some time) →
seat <name> hide_cursor <timeout>
- xbanish (hiding cursor on keypress) →
seat <name> hide_cursor when-typing enable
- xclip / xsel (clipboard copy/paste) → wl-clipboard, wl-clipboard-rs
- clipster / etc. (clipboard manager) → clipman, wl-clipboard-history
- xdotool → wtype, wlrctl,
swaymsg seat <seat> cursor …
, ydotool - xrandr →
swaymsg output …
, wlr-randr - arandr (GUI to configure outputs) → wdisplays
- autorandr → kanshi
- screenkey (screencast tool to display your keys) → wshowkeys, showmethekey
- X11 forwarding → waypipe
- xev → wev
- xmodmap → custom keymap file, interception-tools
- xob → wob
-
dmenu → bemenu, fuzzel, gmenu, wldash
-
bemenu: To use the same color scheme used in dmenu, use
bemenu-run -p "" --tb "#285577" --hb "#285577" --tf "#eeeeee" --hf "#eeeeee" --nf "#bbbbbb"
-
bemenu: To use the same color scheme used in dmenu, use
- rofi → wofi, rofi patch
- ffmpeg x11grab (screen recorder) → wf-recorder, txproto
- VNC → wayvnc
- Redshift → gammastep, wlsunset
- kbdd (per-window keyboard layout) → swaykbdd
- synergy (client) → waynergy
- FAQ
- Differences from i3
- The man pages (start with
man sway
)