Give me a modern i3wm config
- User
Give me a modern i3wm config
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Give me a modern i3wm config
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here's a modern i3wm configuration that includes best practices, clean structure, and up-to-date features. This config uses variables for consistency, includes workspace management, keybindings, and a basic status bar setup.
~/.i3/config (if any):
mv ~/.i3/config ~/.i3/config.bak
~/.i3/config file and paste the content below.i3-msg reload
~/.i3/config)# Define the mod key (Super/Windows) and terminal
set $mod Mod4
set $term xfce4-terminal
set $browser firefox
set $editor nvim
set $launcher dmenu_run
# Disable focus follows mouse
focus_follows_mouse no
# Set default layout (tiled, stack, etc.)
default_layout stacked
# Workspace names (customizable)
set $ws1 "1: "
set $ws2 "2: "
set $ws3 "3: "
set $ws4 "4: "
set $ws5 "5: "
set $ws6 "6: "
set $ws7 "7: "
set $ws8 "8: "
set $ws9 "9: "
set $ws0 "0: "
# Bindings
bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec $term --hold
bindsym $mod+d exec $launcher
bindsym $mod+e exec $editor
bindsym $mod+q exec $browser
bindsym $mod+Shift+q kill
bindsym $mod+Shift+e exec $term -e htop
# Workspace navigation
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws0
# Move focus between workspaces
bindsym $mod+Shift+1 move workspace $ws1
bindsym $mod+Shift+2 move workspace $ws2
bindsym $mod+Shift+3 move workspace $ws3
bindsym $mod+Shift+4 move workspace $ws4
bindsym $mod+Shift+5 move workspace $ws5
bindsym $mod+Shift+6 move workspace $ws6
bindsym $mod+Shift+7 move workspace $ws7
bindsym $mod+Shift+8 move workspace $ws8
bindsym $mod+Shift+9 move workspace $ws9
bindsym $mod+Shift+0 move workspace $ws0
# Layout switching
bindsym $mod+Tab layout toggle
bindsym $mod+Shift+Tab layout default
# Resize mode
bindsym $mod+Shift+space resize enable
# Status bar (i3bar)
bar {
status_command i3status
position top
colors {
background #2e3440
statusline #d8dee9
separator #4c566a
focused_workspace #3b4252
active_workspace #434c5e
inactive_workspace #2e3440
urgent_workspace #bf616a
}
}
# Autostart applications
exec --no-startup-id picom --experimental-backends
exec --no-startup-id nitrogen --restore
exec --no-startup-id xfce4-power-manager
exec --no-startup-id volumeicon
$mod, $term, and other variables for consistency. for terminal).i3status (you can replace with polybar or waybar if preferred).picom), wallpaper (nitrogen), and power manager.i3status with polybar or waybar for a more modern look.i3-msg -t get_workspaces to debug workspace states.Let me know if you want a polybar or waybar integration! 🎨