Created
March 22, 2013 05:41
-
-
Save jonschoning/5219212 to your computer and use it in GitHub Desktop.
sample i3 config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
set $mod Mod4 | |
set $ALT Mod1 | |
# font for window titles. ISO 10646 = Unicode | |
#font -xos4-terminus-medium-r-normal--12-120-72-72-C-60-iso8859-1 | |
font -*-gohufont-medium-r-normal-*-14-100-100-100-*-*-iso10646-1 | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $ALT | |
# start a terminal | |
# bindsym $mod+Return exec i3-sensible-terminal | |
bindsym $ALT+F1 exec urxvtc | |
# kill focused window | |
# bindsym $mod+Shift+Q kill | |
bindsym $ALT+F4 kill | |
# startup apps and window decs | |
default_orientation horizontal | |
workspace_layout tabbed | |
new_window 1pixel | |
# window colours: border background text | |
client.focused #0F0F0F #7FB256 #F5F5FF | |
client.focused_inactive #0F0F0F #7FB256 #E5E5E5 | |
client.unfocused #0F0F0F #5697B2 #E5E5E5 | |
client.urgent #0F0F0F #BC9B54 #E5E5E5 | |
exec xrdb -l /home/doug/.Xdefaults | |
exec xmodmap /home/doug/.Xmodmap | |
exec xsetroot -mod 1 1 -fg mediumslateblue -bg lightslategray | |
exec xset +fp /usr/local/share/fonts/programing/ | |
exec xset fp rehash | |
exec urxvtd -q -f -o | |
exec hsetroot -center /home/doug/wallpaper/MoonSky.jpg | |
exec update-notifier | |
exec nm-applet | |
exec xfce4-power-manager | |
# start dmenu (a program launcher) | |
# bindsym $mod+d exec dmenu_run | |
bindsym $ALT+F2 exec dmenu_run -fn "xft:droid sans:bold:pixelsize=11:antialias=true:hinting=slight" -nb "#0f0f0f" -nf "#a6a6a6" -sb "#0f0f0f" -sf "#8f8fed" | |
bindsym XF86HomePage exec FireFox | |
bindsym $mod+F14 exec thunderbird-mail | |
bindsym $mod+Control+l exec geany | |
bindsym Menu exec thunar | |
bindsym $mod+Control+g exec gimp | |
bindsym $mod+F13 exec 'gksudo synaptic' | |
bindsym XF86AudioRaiseVolume exec amixer sset Master,0 2+ | |
bindsym XF86AudioLowerVolume exec amixer sset Master,0 2- | |
bindsym XF86AudioMute exec amixer sset Master,0 toggle | |
assign [class="Chromium"] 2 | |
for_window [class="Chromium"] border 1pixel | |
assign [class="Navigator"] 2 | |
for_window [class="Navigator"] border 1pixel | |
assign [class="Firefox"] 2 | |
for_window [class="Firefox"] border 1pixel | |
assign [class="Thunderbird"] 2 | |
for_window [class="Thunderbird"] border 1pixel | |
assign [class="Gimp"] 3 | |
for_window [class="Gimp"] border normal | |
for_window [class="Gimp"] floating enable | |
assign [class="Gnome-mplayer"] 4 | |
for_window [class="Gnome-mplayer"] floating enable | |
for_window [class="XFontsel"] floating enable | |
for_window [title="Event Tester"] floating enable | |
for_window [title="Xfce-notifyd"] floating enable | |
for_window [class="Sakura"] floating enable | |
for_window [class="Sakura"] border normal | |
# change focus | |
bindsym $mod+Down focus down | |
bindsym $mod+Up focus up | |
bindsym $ALT+Tab focus right | |
bindsym $ALT+Shift+Tab focus left | |
# move focused window | |
bindsym $mod+Shift+J move left | |
bindsym $mod+Shift+K move down | |
bindsym $mod+Shift+L move up | |
bindsym $mod+Shift+colon 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+h split h | |
# split in vertical orientation | |
bindsym $mod+v split v | |
# enter fullscreen mode for the focused container | |
bindsym $mod+f fullscreen | |
# change container layout (stacked, tabbed, default) | |
bindsym $mod+s layout stacking | |
bindsym $mod+t layout tabbed | |
bindsym $mod+e layout default | |
# 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 | |
#bindcode $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+exclam move container to workspace 1 | |
bindsym $mod+Shift+at move container to workspace 2 | |
bindsym $mod+Shift+numbersign move container to workspace 3 | |
bindsym $mod+Shift+dollar move container to workspace 4 | |
bindsym $mod+Shift+percent move container to workspace 5 | |
bindsym $mod+Shift+asciicircum move container to workspace 6 | |
bindsym $mod+Shift+ampersand move container to workspace 7 | |
bindsym $mod+Shift+asterisk move container to workspace 8 | |
bindsym $mod+Shift+parenleft move container to workspace 9 | |
bindsym $mod+Shift+parenright move container to workspace 10 | |
# reload the configuration file | |
bindsym $mod+Shift+C reload | |
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | |
bindsym $mod+q restart | |
# exit i3 (logs you out of your X session) | |
bindsym $mod+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 j resize shrink left 10 px or 10 ppt | |
bindsym Shift+J resize grow left 10 px or 10 ppt | |
bindsym k resize shrink down 10 px or 10 ppt | |
bindsym Shift+K resize grow down 10 px or 10 ppt | |
bindsym l resize shrink up 10 px or 10 ppt | |
bindsym Shift+L resize grow up 10 px or 10 ppt | |
bindsym semicolon resize shrink right 10 px or 10 ppt | |
bindsym Shift+colon 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 $mod+r mode "resize" | |
# Start i3bar to display a workspace bar (plus the system information i3status | |
# finds out, if available) | |
bar { | |
status_command conky | |
position top | |
font -xos4-terminus-medium-r-normal--12-120-72-72-C-60-iso8859-1 | |
# font -*-proggysquaresz-medium-r-normal-*-11-80-*-*-*-*-iso8859-1 | |
workspace_buttons yes | |
colors { | |
background #0F0F0F | |
statusline #D5D5D5 | |
focused_workspace #F5F5FF #7FB256 | |
active_workspace #E5E5E5 #5697B2 | |
inactive_workspace #E5E5E5 #5697B2 | |
urgent_workspace #E5E5E5 #BC9B54 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment