Skip to content

Instantly share code, notes, and snippets.

@fritz0705
Created November 20, 2011 20:16
Show Gist options
  • Save fritz0705/1380828 to your computer and use it in GitHub Desktop.
Save fritz0705/1380828 to your computer and use it in GitHub Desktop.
my i3 config on my x220
# This configuration uses Mod1 and Mod3. Make sure they are mapped properly using xev(1)
# and xmodmap(1). Usually, Mod1 is Alt (Alt_L) and Mod3 is Windows (Super_L)
# ISO 10646 = Unicode
font -*-fixed-medium-r-normal-*-13-*-*-*-*-70-iso10646-*
# Use Mouse+Mod1 to drag floating windows to their wanted position
floating_modifier Mod4
# New configuration
# Workspace assigns
assign [class="Firefox"] → 2
assign [class="Claws"] → 2
assign [title="weechat"] → 1
for_window [class="qemu"] floating enable
for_window [class="Xephyr"] floating enable
# Execute urxvtd for faster urxvt instances
exec urxvtd -f
# Keybindings
# Mod1+w
bindcode Mod1+25 layout tabbed
# Mod1+s
bindcode Mod1+39 layout stacking
# Mod1+x
bindcode Mod1+53 layout default
# Mod1+t
bindcode Mod1+28 focus mode_toggle
# Mod1+f
bindcode Mod1+41 fullscreen
# Mod1+Shift+Space
bindcode Mod1+Shift+65 floating toggle
# Mod1+Shift+q
bindcode Mod1+Shift+24 kill
# Mod1+g
bindcode Mod1+42 split horizontal
bindcode Mod1+43 split horizontal
# Mod1+v
bindcode Mod1+55 split vertical
# Navigation keybindings
# Mod1+h
bindcode Mod4+43 focus left
# Mod1+j
bindcode Mod4+44 focus down
# Mod1+k
bindcode Mod4+45 focus up
# Mod1+l
bindcode Mod4+46 focus right
# Mod1+u
bindcode Mod1+30 focus parent
bindsym Mod1+Up focus up
bindsym Mod1+Down focus down
bindsym Mod1+Left focus left
bindsym Mod1+Right focus right
bindcode Mod4+Shift+43 move left
bindcode Mod4+Shift+44 move down
bindcode Mod4+Shift+45 move up
bindcode Mod4+Shift+46 move right
bindsym Mod1+Shift+Up move up
bindsym Mod1+Shift+Down move down
bindsym Mod1+Shift+Left move left
bindsym Mod1+Shift+Right move right
# Switch to workspaces
bindsym Mod1+1 workspace 1
bindsym Mod1+2 workspace 2
bindsym Mod1+3 workspace 3
bindsym Mod1+4 workspace 4
bindsym Mod1+5 workspace 5
bindsym Mod1+6 workspace 6
bindsym Mod1+7 workspace 7
bindsym Mod1+8 workspace 8
bindsym Mod1+9 workspace 9
bindsym Mod1+0 workspace 10
bindsym Mod4+1 workspace 11
bindsym Mod4+2 workspace 12
bindsym Mod4+3 workspace 13
bindsym Mod4+4 workspace 14
bindsym Mod4+5 workspace 15
bindsym Mod4+6 workspace 16
bindsym Mod4+7 workspace 17
bindsym Mod4+8 workspace 18
bindsym Mod4+9 workspace 19
bindsym Mod4+0 workspace 20
# Move to workspaces
bindsym Mod1+Shift+1 move workspace 1
bindsym Mod1+Shift+2 move workspace 2
bindsym Mod1+Shift+3 move workspace 3
bindsym Mod1+Shift+4 move workspace 4
bindsym Mod1+Shift+5 move workspace 5
bindsym Mod1+Shift+6 move workspace 6
bindsym Mod1+Shift+7 move workspace 7
bindsym Mod1+Shift+8 move workspace 9
bindsym Mod1+Shift+9 move workspace 9
bindsym Mod1+Shift+0 move workspace 10
bindsym Mod4+Shift+1 move workspace 11
bindsym Mod4+Shift+2 move workspace 12
bindsym Mod4+Shift+3 move workspace 13
bindsym Mod4+Shift+4 move workspace 14
bindsym Mod4+Shift+5 move workspace 15
bindsym Mod4+Shift+6 move workspace 16
bindsym Mod4+Shift+7 move workspace 17
bindsym Mod4+Shift+8 move workspace 18
bindsym Mod4+Shift+9 move workspace 19
bindsym Mod4+Shift+0 move workspace 20
# Starter Hotkeys
# Mod1+Return
bindsym Mod1+Return exec /usr/bin/urxvtc
# Mod1+Shift+f
bindcode Mod1+Shift+41 exec firefox
# Mod1+Shift+w
bindcode Mod1+Shift+25 exec $HOME/.i3/weechat.sh
# Mod1+Shift+y
bindcode Mod1+Shift+52 exec $HOME/.i3/lock.sh
# Mod1+Shift+p
bindcode Mod1+Shift+33 exec claws-mail
# Mod1+Shift+b
bindcode Mod1+Shift+56 exec $HOME/.i3/battinfo.sh
# Mod1+Shift+t
bindcode Mod1+Shift+28 exec $HOME/.i3/time.sh
# Mod1+Shift+Return
bindsym Mod1+Shift+Return exec urxvt
# Mod1+Shift+v
bindcode Mod1+Shift+55 exec /usr/local/bin/dmenu_run
# Mod1+Shift+e exits i3
bind Mod1+Shift+26 exit
# Mod1+Shift+r restarts i3 inplace
bind Mod1+Shift+27 restart
bind Mod4+25 reload
# MPD Control
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioRaiseVolume exec mpc volume +5
bindsym XF86AudioLowerVolume exec mpc volume -5
bindsym XF86ScreenSaver exec $HOME/.i3/lock.sh
bindsym XF86Sleep exec $HOME/.i3/sleep.sh
bindsym XF86Suspend exec $HOME/.i3/suspend.sh
bindsym XF86Battery exec $HOME/.i3/hybrid-suspend.sh
bar {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment