r/i3wm • u/Silver_Train7685 • 18h ago
OC i3 on Linux Mint Cinnamon: sound, tray, lock, and polkit
If you add i3 next to Cinnamon on Linux Mint, Cinnamon stays at the login screen and you can switch back anytime. The part that usually surprises people is the first i3 session itself. Cinnamon's usual helpers are not running, so you get a working window manager and almost none of the desktop around it: no network icon, no volume keys, no lock screen, and no password prompt when a program needs admin rights.
This is for Mint 22.x Cinnamon, with i3 as an X11 session. On Mint 22.3 the sound server is PipeWire, and pactl still talks to it through pipewire-pulse. The package names and the polkit path below are the ones Mint actually ships.
Install the missing pieces first. Some of these are already on a normal Cinnamon install. On a clean Mint 22.3 machine, network-manager-gnome, blueman, and policykit-1-gnome were already there, but it does not hurt to ask for them:
If you have not installed i3 yet, add i3-wm and i3status to that list, and install from Cinnamon rather than from inside i3.
Then put something like this in ~/.config/i3/config. The exec lines run at login, so after you add them, log out and back into i3. A config reload (Mod+Shift+c) will not start them.
# Helpers Cinnamon would normally start
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id nm-applet
exec --no-startup-id blueman-applet
exec --no-startup-id dunst
exec --no-startup-id udiskie --automount --notify --smart-tray
for_window [class="(?i)polkit-gnome-authentication-agent-1"] floating enable
# Lock on idle, and before suspend
exec --no-startup-id xset s 600
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -e
bindsym $mod+Escape exec --no-startup-id i3lock -e
# Volume (PipeWire or PulseAudio)
bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-mute @DEFAULT_SINK@ 0; pactl set-sink-volume @DEFAULT_SINK@ +5%"
bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-mute @DEFAULT_SINK@ 0; pactl set-sink-volume @DEFAULT_SINK@ -5%"
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Media keys (players that support MPRIS, such as Firefox, VLC, or Rhythmbox)
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioPause exec --no-startup-id playerctl pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioStop exec --no-startup-id playerctl stop
# Laptop backlight
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set 5%+
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl --min-value set 5%-
A few things that are easy to trip over:
Tray icons only show if your bar has a tray. i3bar has one by default, usually on the primary monitor, and there can only be one tray in the session. If the network icon is missing, check that nm-applet is running (pgrep -a nm-applet) and that the bar has not set tray_output to none. You can also connect from a terminal with no icon at all:
If the volume keys do nothing, check that the sound services are up and that pactl can see PipeWire:
|
You want the word PipeWire in that pactl output (on Mint 22.3 it may look like "PulseAudio (on PipeWire ...)"). If needed, restart the services inside the session:
Then open pavucontrol and pick the right device on the Output Devices tab. A muted device or the wrong profile (HDMI when you want the speakers, for example) is a common cause. pactl will also let the volume go past 100% unless you cap it yourself. To test media keys without using the keyboard, start some music and run playerctl play-pause in a terminal.
The lock screen is i3lock. Type your password (nothing is shown while you type) and press Enter. The xset s 600 line is a 10 minute idle timer, which xss-lock uses to lock the screen. --transfer-sleep-lock tells it to lock before the machine finishes suspending, so you should get a password prompt when you wake it. If you get stuck, switch to a text console with Ctrl+Alt+F3, log in, run pkill i3lock, then go back with Ctrl+Alt+F7.
Lid close still follows systemd-logind, which usually suspends. Cinnamon's power settings are not running under i3, so if you want different lid behaviour you change it in /etc/systemd/logind.conf. The power button is a separate Mint gotcha: without Cinnamon's settings daemon, a press can shut the machine down immediately. systemd-inhibit --what=handle-power-key can block that while i3 is running, if you would rather handle the button yourself.
Brightness keys need one extra step on Mint. brightness-udev lets members of the video group change the backlight, but a default Mint 22.3 account is not in that group. Run groups in a terminal, and if video is missing:
Then log out and back in. If brightnessctl says there is no adjustable backlight, you are probably on a desktop with an external monitor, and that is expected.
Cinnamon's per-user keyboard layout also does not carry over into i3. If the keys look wrong after login, set the layout in the i3 session, for example:
exec --no-startup-id setxkbmap us
The polkit agent at /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 is the password dialog for installing software, mounting disks, and some network actions. If a program asks for admin rights and nothing appears, that agent probably is not running.
None of this touches the login screen or Cinnamon. If i3 is not what you want on a given day, log out and pick Cinnamon at the gear.

