# i3 config file (v4) # See http://i3wm.org/docs/userguide.html for reference. set $mod Mod4 set $super Mod3 focus_follows_mouse no mouse_warping output # Window title font. Also used by bar unless bar {} uses other. # font pango:DejaVu Sans Mono 8 # font pango:monospace 8 font pango:Liberation Mono 8 # Mouse+$mod drags floating windows: floating_modifier $mod # start a terminal bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+p exec dmenu_run # change focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right # move focused window bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right # split in horizontal orientation bindsym $mod+Control+h split h # split in vertical orientation bindsym $mod+Control+v split v # enter fullscreen mode for the focused container bindsym $mod+Shift+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+t layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # Toggle sticky (visible on all tags) bindsym $mod+Shift+s sticky toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # switch to workspace bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 bindsym $mod+3 workspace 3 bindsym $mod+4 workspace 4 bindsym $mod+5 workspace 5 bindsym $mod+6 workspace 6 bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 bindsym $mod+9 workspace 9 bindsym $mod+0 workspace 10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1 bindsym $mod+Shift+2 move container to workspace 2 bindsym $mod+Shift+3 move container to workspace 3 bindsym $mod+Shift+4 move container to workspace 4 bindsym $mod+Shift+5 move container to workspace 5 bindsym $mod+Shift+6 move container to workspace 6 bindsym $mod+Shift+7 move container to workspace 7 bindsym $mod+Shift+8 move container to workspace 8 bindsym $mod+Shift+9 move container to workspace 9 bindsym $mod+Shift+0 move container to workspace 10 # Named workspaces bindsym $mod+slash exec i3-input -F 'workspace %s' bindsym $mod+Shift+slash exec i3-input -F 'move container to workspace %s' bindsym $mod+bracketright workspace next bindsym $mod+bracketleft workspace prev bindsym $mod+Shift+bracketright move container to workspace next bindsym $mod+Shift+bracketleft move container to workspace prev bindsym $mod+Tab workspace back_and_forth # Named/marked windows # Get a list of set marks from the command line like: # $ i3-msg -t get_marks bindsym $super+m exec i3-input -F 'mark --toggle %s' bindsym $super+f exec i3-input -F '[con_mark="%s"] focus' # reload the configuration file bindsym $mod+Shift+c reload # restart i3 in place (preserves layout/session) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym h resize shrink width 2 px or 2 ppt bindsym j resize grow height 2 px or 2 ppt bindsym k resize shrink height 2 px or 2 ppt bindsym l resize grow width 2 px or 2 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" # light_pink #ffc0cb # cde_blue_gray #718ba5 # cde_purple_gray #aeb2c3 # cde_dark_gray #9397a5 # cde_teal #4992a7 # Set window colors: border backgnd text indicator client.focused #ff1493 #ffc0cb #000000 #ff0000 client.focused_inactive #aeb2c3 #718ba5 #ffffff #ff0000 client.unfocused #aeb2c3 #718ba5 #ffffff #ff0000 client.urgent #ff0000 #ff0000 #ffffff #ff0000 # Start i3bar to display workspace bar (and i3status info) bar { position bottom mode dock modifier Mod1 separator_symbol " | " status_command i3status colors { background #000000 statusline #ffffff separator #888888 # border backgnd text focused_workspace #ff1493 #ffc0cb #000000 inactive_workspace #aeb2c3 #718ba5 #ffffff active_workspace #aeb2c3 #ffc0cb #ffffff urgent_workspace #ff0000 #ff0000 #ffffff } }