]> git.friedersdorff.com Git - max/dotfiles.git/blob - i3/.config/i3/config
c27b0bd0928f2c44aec94da8583c4817e6119114
[max/dotfiles.git] / i3 / .config / i3 / config
1 # Colors
2 set_from_resource $black i3wm.color0 #000000
3 set_from_resource $black_super i3wm.color8 #000000
4
5 set_from_resource $red i3wm.color1 #ff0000
6 set_from_resource $red_super i3wm.color9 #dd0000
7
8 set_from_resource $green i3wm.color2 #00ff00
9 set_from_resource $green_super i3wm.color10 #00dd00
10
11 set_from_resource $yellow i3wm.color3 #000000
12 set_from_resource $yellow_super i3wm.color11 #000000
13
14 set_from_resource $blue i3wm.color4 #000000
15 set_from_resource $blue_super i3wm.color12 #000000
16
17 set_from_resource $magenta i3wm.color5 #000000
18 set_from_resource $magenta_super i3wm.color13 #000000
19
20 set_from_resource $cyan i3wm.color6 #000000
21 set_from_resource $cyan_super i3wm.color14 #000000
22
23 set_from_resource $white i3wm.color7 #000000
24 set_from_resource $white_super i3wm.color15 #000000
25
26 client.focused $black $yellow_super $black $black $black
27 client.focused_inactive $black $black_super $white $black $black 
28
29
30 set $mod Mod4
31
32 font pango:Liberation Mono 8
33
34 # Use Mouse+$mod to drag floating windows to their wanted position
35 floating_modifier $mod
36
37 bindsym Control+t mode "$ratpoison"
38
39 set $ws1 "1"
40 set $ws2 "2"
41 set $ws3 "3"
42 set $ws4 "4"
43 set $ws5 "5"
44 set $ws6 "6"
45 set $ws7 "7"
46 set $ws8 "8"
47 set $ws9 "9"
48 set $ws10 "10"
49
50 mode "$ratpoison" {
51 # All/most commands in this mode should revert to the default mode on comleption.
52 # We are emulating ratpoison (kinda) here
53
54 # Moving to workspaces
55 #  bindsym n workspace next mode "default"
56 #    bindsym Shift+n workspace prev mode "default"
57
58     bindsym 1 mode "default" workspace $ws1
59     bindsym 2 mode "default" workspace $ws2
60     bindsym 3 mode "default" workspace $ws3
61     bindsym 4 mode "default" workspace $ws4
62     bindsym 5 mode "default" workspace $ws5
63     bindsym 6 mode "default" workspace $ws6
64     bindsym 7 mode "default" workspace $ws7
65     bindsym 8 mode "default" workspace $ws8
66     bindsym 9 mode "default" workspace $ws9
67     bindsym 0 mode "default" workspace $ws10
68
69     bindsym Shift+1 mode "default" move container to workspace $ws1
70     bindsym Shift+2 mode "default" move container to workspace $ws2
71     bindsym Shift+3 mode "default" move container to workspace $ws3
72     bindsym Shift+4 mode "default" move container to workspace $ws4
73     bindsym Shift+5 mode "default" move container to workspace $ws5
74     bindsym Shift+6 mode "default" move container to workspace $ws6
75     bindsym Shift+7 mode "default" move container to workspace $ws7
76     bindsym Shift+8 mode "default" move container to workspace $ws8
77     bindsym Shift+9 mode "default" move container to workspace $ws9
78     bindsym Shift+0 mode "default" move container to workspace $ws10
79
80 # Moving focus
81 #    bindsym Tab focus right mode "default"
82 #    bindsym Shift+Tab focus left mode "default"
83
84     bindsym h focus left mode "default"
85     bindsym j focus down mode "default"
86     bindsym k focus up mode "default"
87     bindsym l focus right mode "default"
88
89
90 # Moving windows
91     bindsym Shift+h mode "default" move left
92     bindsym Shift+j mode "default" move down
93     bindsym Shift+k mode "default" move up
94     bindsym Shift+l mode "default" move right
95
96 # Changing split modes
97     bindsym v split v mode "default"
98     bindsym o split h mode "default"
99
100
101     bindsym c mode "default" exec i3-sensible-terminal
102     bindsym q mode "default" kill
103
104     bindsym Shift+e mode "default" exec dmenu_run
105
106     bindsym Escape mode "default"
107
108     bindsym $mod+l mode "default" exec "xscreensaver-command -lock&"
109
110 }
111
112
113
114 # There also is the (new) i3-dmenu-desktop which only displays applications
115 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
116 # installed.
117 # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
118
119 # enter fullscreen mode for the focused container
120 bindsym $mod+t fullscreen toggle
121
122 # change container layout (stacked, tabbed, toggle split)
123 bindsym $mod+r layout stacking
124 bindsym $mod+w layout tabbed
125 bindsym $mod+f layout toggle split
126
127 # toggle tiling / floating
128 bindsym $mod+Shift+space floating toggle
129
130 # change focus between tiling / floating windows
131 bindsym $mod+space focus mode_toggle
132
133 # focus the parent container
134 bindsym $mod+a focus parent
135
136 # focus the child container
137 #bindsym $mod+d focus child
138
139 # reload the configuration file
140 bindsym $mod+Shift+c reload
141 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
142 bindsym $mod+Shift+r restart
143 # exit i3 (logs you out of your X session)
144 bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
145
146 # resize window (you can also use the mouse for that)
147 mode "resize" {
148 # These bindings trigger as soon as you enter the resize mode
149
150 # Pressing left will shrink the window’s width.
151 # Pressing right will grow the window’s width.
152 # Pressing up will shrink the window’s height.
153 # Pressing down will grow the window’s height.
154   bindsym h resize shrink width 10 px or 10 ppt
155     bindsym j resize grow height 10 px or 10 ppt
156     bindsym k resize shrink height 10 px or 10 ppt
157     bindsym l resize grow width 10 px or 10 ppt
158
159 # same bindings, but for the arrow keys
160     bindsym Left resize shrink width 10 px or 10 ppt
161     bindsym Down resize grow height 10 px or 10 ppt
162     bindsym Up resize shrink height 10 px or 10 ppt
163     bindsym Right resize grow width 10 px or 10 ppt
164
165 # back to normal: Enter or Escape or $mod+r
166     bindsym Return mode "default"
167     bindsym Escape mode "default"
168     bindsym $mod+p mode "default"
169 }
170
171 bindsym $mod+p mode "resize"
172
173
174
175 hide_edge_borders both 
176 workspace 1 output HDMI2
177 workspace 2 output VGA1
178
179 focus_follows_mouse no
180
181 focus_on_window_activation urgent
182
183
184
185
186
187 # Start i3bar to display a workspace bar (plus the system information i3status
188 # finds out, if available)
189 bar {
190   id bar_left
191   status_command conky-i3bar
192   position top
193   output "DVI-I-1"
194   font pango:Liberation Mono 10
195   colors {
196     background $black_super
197     focused_background $black
198     focused_workspace $black_super $yellow_super $black
199     active_workspace $black_super $blue_super $black
200     inactive_workspace $black_super $black_super $white_super
201     urgent_workspace $black $red_super $white
202   }
203 }
204
205 bar {
206   id bar_right
207   position top
208   output "HDMI-4"
209   font pango:Liberation Mono 10
210   colors {
211     background $black_super
212     focused_background $black
213     focused_workspace $black_super $yellow_super $black
214     active_workspace $black_super $blue_super $black
215     inactive_workspace $black_super $black_super $white_super
216     urgent_workspace $black $red_super $white
217   }
218 }