Skip to content

Instantly share code, notes, and snippets.

@fiskus
Created August 23, 2012 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiskus/3434575 to your computer and use it in GitHub Desktop.
Save fiskus/3434575 to your computer and use it in GitHub Desktop.
i3 config
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
font -misc-fixed-medium-r-normal--12-120-75-75-C-70-iso10646-1
# use Mouse+Mod4 to drag floating windows to their wanted position
floating_modifier Mod4
# start a terminal
bindsym Mod4+Shift+Return exec urxvt
# kill focused window
bindsym Mod4+q kill
# start dmenu (a program launcher)
bindsym Mod4+p exec dmenu_run -l 5 -nb '#170F0D' -nf '#C8B55B' -sb '#C8B55B' -sf '#170F0D'
# change focus
bindsym Mod4+h focus left
bindsym Mod4+j focus down
bindsym Mod4+k focus up
bindsym Mod4+l focus right
# alternatively, you can use the cursor keys:
bindsym Mod4+Left focus left
bindsym Mod4+Down focus down
bindsym Mod4+Up focus up
bindsym Mod4+Right focus right
# move focused window
bindsym Mod4+Shift+h move left
bindsym Mod4+Shift+j move down
bindsym Mod4+Shift+k move up
bindsym Mod4+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym Mod4+Shift+Left move left
bindsym Mod4+Shift+Down move down
bindsym Mod4+Shift+Up move up
bindsym Mod4+Shift+Right move right
# split in horizontal orientation
bindsym Mod4+v split h
# split in vertical orientation
bindsym Mod4+s split v
# enter fullscreen mode for the focused container
bindsym Mod4+f fullscreen
# change container layout (stacked, tabbed, default)
bindsym Mod4+w layout stacking
bindsym Mod4+t layout tabbed
bindsym Mod4+e layout default
# toggle tiling / floating
bindsym Mod4+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym Mod4+space focus mode_toggle
# focus the parent container
bindsym Mod4+a focus parent
# focus the child container
#bindsym Mod4+d focus child
# switch to workspace
bindsym Mod4+1 workspace " 1 "
bindsym Mod4+2 workspace " 2 "
bindsym Mod4+3 workspace " 3 "
bindsym Mod4+4 workspace " 4 "
bindsym Mod4+5 workspace " 5 "
bindsym Mod4+6 workspace " 6 "
bindsym Mod4+7 workspace " 7 "
bindsym Mod4+8 workspace " 8 "
bindsym Mod4+9 workspace " 9 "
bindsym Mod4+0 workspace " 10 "
# move focused container to workspace
bindsym Mod4+Shift+1 move workspace " 1 "
bindsym Mod4+Shift+2 move workspace " 2 "
bindsym Mod4+Shift+3 move workspace " 3 "
bindsym Mod4+Shift+4 move workspace " 4 "
bindsym Mod4+Shift+5 move workspace " 5 "
bindsym Mod4+Shift+6 move workspace " 6 "
bindsym Mod4+Shift+7 move workspace " 7 "
bindsym Mod4+Shift+8 move workspace " 8 "
bindsym Mod4+Shift+9 move workspace " 9 "
bindsym Mod4+Shift+0 move workspace " 10 "
# reload the configuration file
bindsym Mod4+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod4+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym Mod4+Shift+q exit
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# They resize the border in the direction you pressed, e.g.
# when pressing left, the window is resized so that it has
# more space on its left
bindsym h resize shrink left 10 px or 10 ppt
bindsym Shift+h resize grow left 10 px or 10 ppt
bindsym j resize shrink down 10 px or 10 ppt
bindsym Shift+j resize grow down 10 px or 10 ppt
bindsym k resize shrink up 10 px or 10 ppt
bindsym Shift+k resize grow up 10 px or 10 ppt
bindsym l resize shrink right 10 px or 10 ppt
bindsym Shift+l resize grow right 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink left 10 px or 10 ppt
bindsym Shift+Left resize grow left 10 px or 10 ppt
bindsym Down resize shrink down 10 px or 10 ppt
bindsym Shift+Down resize grow down 10 px or 10 ppt
bindsym Up resize shrink up 10 px or 10 ppt
bindsym Shift+Up resize grow up 10 px or 10 ppt
bindsym Right resize shrink right 10 px or 10 ppt
bindsym Shift+Right resize grow right 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym Mod4+semicolon mode "resize"
new_window 1pixel
force_xinerama yes
for_window [title="xfce4-notifyd"] floating enable
bar {
# status_command i3status -c /home/fiskus/.i3status.conf
status_command conky | dzen2 -fn '-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-u' -bg '#170F0D' -fg '#C8B55B' -h 18 -ta r -w 1320 -x 604
font -misc-fixed-medium-r-normal--12-120-75-75-C-70-iso10646-1
position top
tray_output LVDS-1
colors {
background #170F0D
inactive_workspace #170F0D #170F0D #C8B55B
active_workspace #98724C #98724C #170F0D
focused_workspace #C8B55B #C8B55B #170F0D
urgent_workspace #00ff00 #00ff00 #00ff00
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment