Skip to content

i3 - A windows management tool

Some tips from an experienced user: https://www.reddit.com/r/i3wm/comments/zjq8yf/some_tips_on_how_to_take_advantage_of_i3wm/ https://github.com/cknadler/vim-anywhere https://i3wm.org/docs/userguide.html

Config file

Located at ~/.config/i3/config

You can add your own configurations.

Quick guide

# Open a terminal windows. By default it will open horizontally
$mod+Enter

# Open vertically next window
$mod+v

# Open horizontally next window
$mod+h.

# Select your parent container. If you have a selection of containers, then you can do an action on them, like to close them 
$mod+a

# Move the position of the tiled windows 
$mod+Shift+Arrows // and move the windows around

# Close a window
$mod+Shift+Q

# Enter full-screen mode
$mod+f

# Switch workspace
$mod+num // To switch to workspace 2: $mod+2.

# Moving windows to workspaces
$mod+Shift+num // where num is the target workspace

# Restarting i3
$mod+Shift+r

# Exiting i3
$mod+Shift+e

Customization

Locking screen

In my case I've added a shortcut to lock the screen:

# keybinding to lock screen
bindsym $mod+Control+l exec "i3lock -c 000000"

This requires having installed the tools i3lock (allegedly already installed) and xautolock (not preinstalled)

sudo apt install i3lock xautolock

Scratchpad

Also, I've added scratchpad shortcuts

# Make the currently focused window a scratchpad
bindsym $mod+Shift+space move scratchpad

# Show the first scratchpad window
bindsym $mod+space scratchpad show
Last update: 2024-04-28
Created: January 1, 2023 21:59:36