#.......... # i3 config file (v4) # Please see http://i3wm.org/docs/userguide.html for a complete reference! #.......... set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. ISO 10646 = Unicode font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 # The font above is very space-efficient, that is, it looks good, sharp and # clear in small sizes. However, if you need a lot of unicode glyphs or # right-to-left text rendering, you should instead use pango for rendering and # chose a FreeType font, such as: font pango:hermit bold 9 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec xfce4-terminal # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+d exec --no-startup-id dmenu_run # switching between workspace # http://i3wm.org/docs/userguide.html#_changing_named_workspaces_moving_to_workspaces bindsym $mod+period workspace next bindsym $mod+comma workspace prev # change focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right 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 # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+o split h;exec notify-send 'tile horizontally' # split in vertical orientation bindsym $mod+v split v;exec notify-send 'tile vertically' # enter fullscreen mode for the focused container bindsym $mod+f fullscreen # workspace back and forth (with/without active container) workspace_auto_back_and_forth no # follow mouse yes by default focus_follows_mouse no # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating 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 set $ws1 "1: cli" set $ws2 "2: eclipse" set $ws3 "3: file" set $ws4 "4: emacs" set $ws5 5 set $ws6 6 set $ws7 7 set $ws8 "8: firefox" set $ws9 "9: hipchat" set $ws0 "10: www" # switch to workspace 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 focused container to workspace bindsym $mod+Ctrl+1 move container to workspace $ws1 bindsym $mod+Ctrl+2 move container to workspace $ws2 bindsym $mod+Ctrl+3 move container to workspace $ws3 bindsym $mod+Ctrl+4 move container to workspace $ws4 bindsym $mod+Ctrl+5 move container to workspace $ws5 bindsym $mod+Ctrl+6 move container to workspace $ws6 bindsym $mod+Ctrl+7 move container to workspace $ws7 bindsym $mod+Ctrl+8 move container to workspace $ws8 bindsym $mod+Ctrl+9 move container to workspace $ws9 bindsym $mod+Ctrl+0 move container to workspace $ws0 # Move to workspace with focused container bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 Bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 Bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws0; workspace $ws0 # Workspace's display workspace $ws1 output VGA1 workspace $ws2 output VGA1 workspace $ws3 output VGA1 workspace $ws9 output LVDS1 workspace $ws8 output LVDS1 workspace $ws0 output LVDS1 # Assign window to a workspace assign [class="(?i)term"] → $ws1 assign [class="(?i)eclipse"] → $ws2 assign [class="(?i)thunar"] → $ws3 assign [class="(?i)emacs"] → $ws4 assign [class="(?i)firefox"] → $ws8 assign [class="(?i)hipchat"] → $ws9 assign [class="(?i)chrome"] → $ws0 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # Set shut down, restart and locking features bindsym $mod+Shift+e mode "$mode_system" set $mode_system (l)ock, (e)xit mode "$mode_system" { bindsym l exec --no-startup-id i3lock, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" # exit system mode: "Enter" or "Escape" bindsym Return mode "default" bindsym Escape mode "default" } # 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 10 px or 10 ppt bindsym j resize grow height 10 px or 10 ppt bindsym k resize shrink height 10 px or 10 ppt bindsym l resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink 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 Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" #.......... # Look #.......... # window borded new_window pixel 4 new_float pixel 4 # toggle border bindsym $mod+b border toggle # Hybrid colors set $status_grey_bg #101010 set $black #282A2E set $grey #373B41 set $lightgrey #707880 set $white #C5C8C6 set $yellow #F0C674 set $red #CC6666 set $darkred #A54242 set $green #B5BD56 set $purple #cc6699 #class border backgr. text split client.focused $purple $purple $black $red client.focused_inactive $grey $grey $lightgrey $grey client.unfocused $grey $grey $lightgrey $grey client.urgent $red $red $black $red client.background $black # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { #status_command i3status status_command ~/.i3/conky.sh position top mode dock workspace_buttons yes #tray_output none colors { background $status_grey_bg statusline $white #class border backgr. text focused_workspace $purple $green $status_grey_bg active_workspace $purple $status_grey_bg $purple inactive_workspace $status_grey_bg $status_grey_bg $lightgrey urgent_workspace $black $red $status_grey_bg } } #.......... # autostart apps #.......... exec --no-startup-id feh --bg-fill ~/Pictures/wallpapers/the-dark-knight-trilogy-wallpaper-full-hd.jpg exec thunar --daemon exec --no-startup-id eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) exec --no-startup-id nm-applet exec --no-startup-id xfce4-volumed exec --no-startup-id xfce4-power-manager exec --no-startup-id clipit exec --no-startup-id xautolock -time 10 -locker blurlock