Give me a modern i3wm config
- User
Give me a modern i3wm config
Assistant
Here's a modern i3wm configuration with a focus on clean design, productivity, and modern features like gaps, transparency, and improved status bar integration:
# ~/.config/i3/config # Variables set $mod Mod4 set $terminal alacritty set $launcher rofi -launchers drun -theme ~/.config/rofi/launcher.rasi set $menu rofi -combi-modi window -launcher -theme ~/.config/rofi/launcher.rasi # General Settings gaps inner 10 gaps outer 0 smart_gaps on border pixel 1 hide_edge_borders both focus_follows_mouse no mouse_warping none titlebar_position none workspace_auto_back_and_forth yes # Default apps assign [class="Firefox"] $ws1 assign [class="Alacritty"] $ws2 assign [class="Thunar"] $ws3 # Startup Applications exec --no-startup-id picom --config ~/.config/picom.conf exec --no-startup-id nitrogen ~/Pictures/wallpapers --restore exec --no-startup-id nm-applet exec --no-startup-id volumeicon exec --no-startup-id dunst exec --no-startup-id xsetroot -cursor_name left_ptr # Keybindings bindsym $mod+Return exec $terminal bindsym $mod+d exec $launcher bindsym $mod+Tab exec $menu # Workspace Navigation bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 bindsym $mod+3 workspace number 3 bindsym $mod+Shift+{1-9} move container to workspace number {1-9} # Layout Toggle bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # Resize Mode mode "resize" { bindsym Left resize shrink width 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" # Floating Windows bindsym $mod+Shift+space toggle floating bindsym $mod+space focus mode_toggle # Multimedia Keys bindsym XF86MonBrightnessDown exec brightnessctl set 5%- bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ bindsym XF86AudioMute exec pamixer --toggle-mute bindsym XF86AudioLowerVolume exec pamixer --decrease 5 bindsym XF86AudioRaiseVolume exec pamixer --increase 5 # Status Bar bar { status_command i3status -c ~/.config/i3/i3status.conf font pango: Fira Code 10 position top colors { background #1d1f21 statusline #ffffff focused_workspace #5e81ac #5e81ac #ffffff active_workspace #4c566a #4c566a #ffffff inactive_workspace #3b4252 #3b4252 #d8dee9 } } # Colors client.focused #4c566a #4c566a #ffffff #434c5e client.focused_inactive #3b4252 #3b4252 #d8dee9 #3b4252 client.unfocused #2e3440 #2e3440 #6c7782 #2e3440 client.urgent #bf616a #bf616a #ffffff #bf616ai3status.conf (create at
~/.config/i3/i3status.conf):# i3status configuration general { colors = true interval = 5 output_format = "i3bar" } order += "ipv6" order += "wireless _any" order += "battery all" order += "cpu_temperature 0" order += "load" order += "tztime local" wireless _any { format_up = " %quality" } battery all { format = "%status %remaining" format_down = " Unplugged" status_chr = "" status_bat = "" status_full = "" } cpu_temperature 0 { format = " %degrees°C" } tztime local { format = " %Y-%m-%d %I:%M %p" }Key Features:
- Gaps & Borders: Modern spacing with smart gaps and hidden edge borders
- Transparency: Works with picom compositor (requires picom config)
- Productivity: Workspace assignments, layout toggles, resize mode
- Aesthetic: Nord-inspired color scheme with clean fonts
- Status Bar: Customized i3status with icons and proper spacing
- Multimedia: Direct brightness/volume controls
- Compositor Ready: Optimized for picom with fade/shadow effects
Dependencies to Install:
picom nitrogen rofi dunst brightnessctl pamixer i3statusPicom Configuration Example (
~/.config/picom.conf):backend = "glx" paint_on_overlay = true glx-no-stencil = true shadow = true shadow-radius = 8 shadow-offset-x = -8 shadow-offset-y = -8 shadow-exclude = [ "class_g = 'Bar'", "class_g = 'i3-frame'", "class_g ?= 'Notify'", "class_g ?= 'Dunst'" ] fading = true fade-delta = 4 fade-in-step = 0.03 fade-out-step = 0.03 opacity-rule = [ "95:class_g = 'Alacritty' && !_NET_WM_STATE@:32a" ]Tips:
- Use
Mod+Shift+Cto reload config - Customize wallpaper with
nitrogen - Replace icons (, , etc.) with your preferred nerd font icons
- Add custom scripts to status bar for system monitoring
- Enable X11 cursor theme with
xsetroot -cursor_name left_ptr
This configuration provides a clean, functional base that you can customize further with your preferred applications, themes, and productivity tools.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.