Mon, 26 May 2014 21:55:25 -0400
more
1 | 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 | ||
12 | set $mod Mod4 | |
13 | ||
14 | # Font for window titles. Will also be used by the bar unless a different font | |
15 | # is used in the bar {} block below. ISO 10646 = Unicode | |
16 | font pango:Droid Sans Mono Slashed 10 | |
17 | #~font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
18 | # The font above is very space-efficient, that is, it looks good, sharp and | |
19 | # clear in small sizes. However, if you need a lot of unicode glyphs or | |
20 | # right-to-left text rendering, you should instead use pango for rendering and | |
21 | # chose a FreeType font, such as: | |
22 | # font pango:DejaVu Sans Mono 10 | |
23 | ||
24 | # Use Mouse+$mod to drag floating windows to their wanted position | |
25 | floating_modifier $mod | |
26 | ||
27 | # start a terminal | |
28 | bindsym $mod+Return exec i3-sensible-terminal | |
29 | ||
30 | # kill focused window | |
31 | bindsym $mod+Shift+q kill | |
32 | ||
33 | # start dmenu (a program launcher) | |
34 | #~bindsym $mod+d exec dmenu_run | |
35 | # There also is the (new) i3-dmenu-desktop which only displays applications | |
36 | # shipping a .desktop file. It is a wrapper around dmenu, so you need that | |
37 | # installed. | |
38 | bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | |
39 | ||
40 | # change focus | |
41 | bindsym $mod+j focus left | |
42 | bindsym $mod+k focus down | |
43 | bindsym $mod+l focus up | |
44 | bindsym $mod+semicolon focus right | |
45 | ||
46 | # alternatively, you can use the cursor keys: | |
47 | bindsym $mod+Left focus left | |
48 | bindsym $mod+Down focus down | |
49 | bindsym $mod+Up focus up | |
50 | bindsym $mod+Right focus right | |
51 | ||
52 | # move focused window | |
53 | bindsym $mod+Shift+j move left | |
54 | bindsym $mod+Shift+k move down | |
55 | bindsym $mod+Shift+l move up | |
56 | bindsym $mod+Shift+semicolon move right | |
57 | ||
58 | # alternatively, you can use the cursor keys: | |
59 | bindsym $mod+Shift+Left move left | |
60 | bindsym $mod+Shift+Down move down | |
61 | bindsym $mod+Shift+Up move up | |
62 | bindsym $mod+Shift+Right move right | |
63 | ||
64 | # split in horizontal orientation | |
65 | bindsym $mod+h split h | |
66 | ||
67 | # split in vertical orientation | |
68 | bindsym $mod+v split v | |
69 | ||
70 | # enter fullscreen mode for the focused container | |
71 | bindsym $mod+f fullscreen | |
72 | ||
73 | # change container layout (stacked, tabbed, toggle split) | |
74 | bindsym $mod+s layout stacking | |
75 | bindsym $mod+w layout tabbed | |
76 | bindsym $mod+e layout toggle split | |
77 | ||
78 | # toggle tiling / floating | |
79 | bindsym $mod+Shift+space floating toggle | |
80 | ||
81 | # change focus between tiling / floating windows | |
82 | bindsym $mod+space focus mode_toggle | |
83 | ||
84 | # focus the parent container | |
85 | bindsym $mod+a focus parent | |
86 | ||
87 | # focus the child container | |
88 | #bindsym $mod+d focus child | |
89 | ||
90 | bindsym $mod+b workspace back_and_forth | |
91 | bindsym $mod+minus workspace prev | |
92 | bindsym $mod+equal workspace next | |
93 | ||
94 | # switch to workspace | |
95 | bindsym $mod+1 workspace 1 | |
96 | bindsym $mod+2 workspace 2 | |
97 | bindsym $mod+3 workspace 3 | |
98 | bindsym $mod+4 workspace 4 | |
99 | bindsym $mod+5 workspace 5 | |
100 | bindsym $mod+6 workspace 6 | |
101 | bindsym $mod+7 workspace 7 | |
102 | bindsym $mod+8 workspace 8 | |
103 | bindsym $mod+9 workspace 9 | |
104 | bindsym $mod+0 workspace 10 | |
105 | ||
106 | # move focused container to workspace | |
107 | bindsym $mod+Shift+1 move container to workspace 1 | |
108 | bindsym $mod+Shift+2 move container to workspace 2 | |
109 | bindsym $mod+Shift+3 move container to workspace 3 | |
110 | bindsym $mod+Shift+4 move container to workspace 4 | |
111 | bindsym $mod+Shift+5 move container to workspace 5 | |
112 | bindsym $mod+Shift+6 move container to workspace 6 | |
113 | bindsym $mod+Shift+7 move container to workspace 7 | |
114 | bindsym $mod+Shift+8 move container to workspace 8 | |
115 | bindsym $mod+Shift+9 move container to workspace 9 | |
116 | bindsym $mod+Shift+0 move container to workspace 10 | |
117 | ||
118 | # reload the configuration file | |
119 | bindsym $mod+Shift+c reload | |
120 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | |
121 | bindsym $mod+Shift+r restart | |
122 | # exit i3 (logs you out of your X session) | |
123 | bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'" | |
124 | ||
125 | # resize window (you can also use the mouse for that) | |
126 | mode "resize" { | |
127 | # These bindings trigger as soon as you enter the resize mode | |
128 | ||
129 | # Pressing left will shrink the window’s width. | |
130 | # Pressing right will grow the window’s width. | |
131 | # Pressing up will shrink the window’s height. | |
132 | # Pressing down will grow the window’s height. | |
133 | bindsym j resize shrink width 10 px or 10 ppt | |
134 | bindsym k resize grow height 10 px or 10 ppt | |
135 | bindsym l resize shrink height 10 px or 10 ppt | |
136 | bindsym semicolon resize grow width 10 px or 10 ppt | |
137 | ||
138 | # same bindings, but for the arrow keys | |
139 | bindsym Left resize shrink width 10 px or 10 ppt | |
140 | bindsym Down resize grow height 10 px or 10 ppt | |
141 | bindsym Up resize shrink height 10 px or 10 ppt | |
142 | bindsym Right resize grow width 10 px or 10 ppt | |
143 | ||
144 | # back to normal: Enter or Escape | |
145 | bindsym Return mode "default" | |
146 | bindsym Escape mode "default" | |
147 | } | |
148 | ||
149 | bindsym $mod+r mode "resize" | |
150 | ||
151 | # Start i3bar to display a workspace bar (plus the system information i3status | |
152 | # finds out, if available) | |
153 | bar { | |
154 | status_command i3status | |
155 | } | |
156 | ||
157 | exec xsetroot -solid "SteelBlue4" | |
158 | ||
159 | exec xset -dpms s off | |
160 | exec ~/.i3/auto-start | |
161 |