53df13ac1ecfb48511d0359bd4bd50da8cad6c1a
[dotfiles.git] / i3 / config
1 # This file has been auto-generated by i3-config-wizard(1).
2 # It will not be overwritten, so edit it as you like.
3 #
4 # Should you change your keyboard layout somewhen, delete
5 # this file and re-run i3-config-wizard(1).
6 #
7
8 # i3 config file (v4)
9 #
10 # Please see http://i3wm.org/docs/userguide.html for a complete reference!
11 exec dropbox start
12 exec xautolock -time 15 -locker 'lock'
13 #exec while [ 1 ]; do offlineimap -c /home/mart/.mutt/offlineimaprc; done
14 exec /home/mart/.software/xflux -l 51.8125626 -g 5.8372264
15 exec xcompmgr
16 exec feh --no-fehbg --bg-scale '/usr/share/slim/themes/default/background.jpg'
17
18 set $mod Mod4
19
20 # font for window titles. ISO 10646 = Unicode
21 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
22
23 # Use Mouse+$mod to drag floating windows to their wanted position
24 floating_modifier $mod
25
26 # music controls
27 bindsym XF86AudioPlay exec mpc toggle >> /dev/null
28 bindsym XF86AudioStop exec mpc stop >> /dev/null
29 bindsym XF86AudioPrev exec mpc prev >> /dev/null
30 bindsym XF86AudioNext exec mpc next >> /dev/null
31
32 bindsym Print exec scrot
33
34 # volume controls
35 bindsym XF86AudioRaiseVolume exec amixer set Master 5+ >> /dev/null
36 bindsym XF86AudioLowerVolume exec amixer set Master 5- >> /dev/null
37
38 # start a terminal
39 bindsym $mod+Return exec urxvt
40
41 # kill focused window
42 bindsym $mod+Shift+quotedbl kill
43
44 # start dmenu (a program launcher)
45 bindsym $mod+e exec dmenu_run
46
47 # change focus
48 bindsym $mod+h focus left
49 bindsym $mod+t focus down
50 bindsym $mod+n focus up
51 bindsym $mod+s focus right
52
53 # move focused window
54 bindsym $mod+Shift+H move left
55 bindsym $mod+Shift+T move down
56 bindsym $mod+Shift+N move up
57 bindsym $mod+Shift+S move right
58
59 # split in horizontal orientation
60 bindsym $mod+d split h
61
62 # split in vertical orientation
63 bindsym $mod+k split v
64
65 # enter fullscreen mode for the focused container
66 bindsym $mod+u fullscreen
67
68 # change container layout (stacked, tabbed, default)
69 bindsym $mod+o layout stacking
70 bindsym $mod+comma layout tabbed
71 bindsym $mod+period layout default
72
73 # toggle tiling / floating
74 bindsym $mod+Shift+space floating toggle
75
76 # change focus between tiling / floating windows
77 bindsym $mod+space focus mode_toggle
78
79 # focus the parent container
80 bindsym $mod+a focus parent
81
82 # focus the child container
83 #bindcode $mod+d focus child
84
85 # switch to workspace
86 bindsym $mod+1 workspace 1
87 bindsym $mod+2 workspace 2
88 bindsym $mod+3 workspace 3
89 bindsym $mod+4 workspace 4
90 bindsym $mod+5 workspace 5
91 bindsym $mod+6 workspace 6
92 bindsym $mod+7 workspace 7
93 bindsym $mod+8 workspace 8
94 bindsym $mod+9 workspace 9
95 bindsym $mod+0 workspace 10
96
97 # move focused container to workspace
98 bindsym $mod+Shift+exclam move container to workspace 1
99 bindsym $mod+Shift+at move container to workspace 2
100 bindsym $mod+Shift+numbersign move container to workspace 3
101 bindsym $mod+Shift+dollar move container to workspace 4
102 bindsym $mod+Shift+percent move container to workspace 5
103 bindsym $mod+Shift+asciicircum move container to workspace 6
104 bindsym $mod+Shift+ampersand move container to workspace 7
105 bindsym $mod+Shift+asterisk move container to workspace 8
106 bindsym $mod+Shift+parenleft move container to workspace 9
107 bindsym $mod+Shift+parenright move container to workspace 10
108
109 # reload the configuration file
110 bindsym $mod+Shift+J reload
111 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
112 bindsym $mod+Shift+P restart
113 # exit i3 (logs you out of your X session)
114 bindsym $mod+Shift+greater exit
115
116 # resize window (you can also use the mouse for that)
117 mode "resize" {
118 # These bindings trigger as soon as you enter the resize mode
119
120 # Pressing left will shrink the window’s width.
121 # Pressing right will grow the window’s width.
122 # Pressing up will shrink the window’s height.
123 # Pressing down will grow the window’s height.
124 bindsym h resize shrink width 10 px or 10 ppt
125 bindsym t resize grow height 10 px or 10 ppt
126 bindsym n resize shrink height 10 px or 10 ppt
127 bindsym s resize grow width 10 px or 10 ppt
128
129 # back to normal: Enter or Escape
130 bindsym Return mode "default"
131 bindsym Escape mode "default"
132 }
133
134 bindsym $mod+p mode "resize"
135
136 # Start i3bar to display a workspace bar (plus the system information i3status
137 # finds out, if available)
138 bar {
139 status_command /home/mart/.i3/bar
140 position bottom
141 Font -gnu-unifont-*-*-*-16-160-*-*-*-*-*-*
142 }