Skip to content
Szymon Maszke edited this page Feb 23, 2018 · 1 revision

i3 is minimal, easy to configure (using text configuration) tiling window manager. You can think about it as the back bone of my configuration, responsible for window layouts, spacing, workspaces and movement between forementioned (keybindings).

Contents of this section are provided in file i3/config.

See i3 documentation here for in-depth informations.

Contents

  • vim-like keybindings

When your workspace is split you can move between those using mod+h/l just like in vim.

bindsym $mod+h focus left
bindsym $mod+Up focus up
bindsym $mod+Down focus down
bindsym $mod+l focus right

I rarely use horizontal splits, that's why those are mapped to arrow keys. To toggle workspaces using mod+j/k you need the following snippet:

bindsym $mod+j workspace prev
bindsym $mod+k workspace next

Finally, for easier movement between workspaces type in your config:

workspace_auto_back_and_forth yes
  • Compatibility with polybar icons and workspace naming

Lines 86-108 name each workspace and names are pretty self-explanatory. They have to be numbered in order to retain workspace order without using uglu numbers for their names. See section polybar to see it in action.

Lines 112-121 are responsible for software-specific workspace (e.g. terminal is always located on the workspace 1)

  • Automatically start desired application during system boot Last section beginning with comment AUTOCOMMAND (exec_always to the end) runs needed software, everything explained in the comments:
exec_always --no-startup-id $HOME/.config/polybar/launch.sh " Launch bar located at the top (see polybar section)
exec redshift " turns your screen red at night, easier for the eyes
exec feh --bg-scale $HOME/pictures/wallpaper3.jpeg " display background image
exec compton -b " composition manager, smooth transitions between windows 
exec --no-startup-id greenclip daemon & " daemon saving copy history so you can use it easily
exec --no-startup-id udiskie & " automatically connect usb devices
exec --no-startup-id i3-msg 'workspace 1; exec termite -e tmux' " Start terminal with tmux inside as main system window

This file IS NOT responsible for anything look related!

Clone this wiki locally