-
Notifications
You must be signed in to change notification settings - Fork 10
/
config
300 lines (255 loc) · 9.69 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# Lukas Zapletal (lzap) i3 config file
#
# Please see https://i3wm.org/docs/user-contributed/lzap-config.html or
# https://lukas.zapletalovi.com/2012/08/new-in-fedora-17-i3-42-tiling-wm.html
# my main modifier key is Win
set $mod Mod4
# font for window titles. ISO 10646 = Unicode
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# no mouse cursor "stealing" across workspaces
mouse_warping none
# workaround for some my "dumb" apps
popup_during_fullscreen leave_fullscreen
# clicking on links never steals focus
focus_on_window_activation urgent
# start a terminal
bindsym $mod+Return exec xterm
# kill focused window
bindsym $mod+Shift+Q kill
# start program launcher
# ln -s /usr/share/fonts/google-roboto/RobotoCondensed-Regular.ttf ~/.fonts
bindsym $mod+space exec /home/lzap/work/xlunch/xlunch -i /home/lzap/.config/xlunch/entries.dsv -f RobotoCondensed-Regular.ttf/10 -G
#bindsym $mod+space exec /home/lzap/bin/dmenu_run
# reload/restart/exit (confirmation does not work anymore)
bindsym $mod+Shift+C reload
#bindsym $mod+Shift+R restart
#bindsym $mod+Shift+E exit
# screen locker (first move to "safe" workspace without any chat app)
bindsym Control+Mod1+l exec i3-msg workspace 1 && i3lock -c 111111 -d
bindsym Control+Mod1+s exec i3-msg workspace 1 && sleep 1 && xset dpms force standby
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+uring focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+uring 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
# splitting
bindsym $mod+v split vertical
bindsym $mod+h split horizontal
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout
bindsym $mod+s layout toggle split
bindsym $mod+x layout toggle all
bindsym $mod+t layout tabbed
# toggle tiling / floating
bindsym $mod+y floating toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
bindsym $mod+d focus child
# next/previous workspace
bindsym Mod1+Tab focus left
bindsym Mod1+Shift+Tab focus right
bindsym $mod+Tab focus down
# change focus between tiling / floating windows
bindsym $mod+Shift+Tab focus mode_toggle
# switch to workspace
#bindsym $mod+ampersand workspace 1
#bindsym $mod+eacute workspace 2
#bindsym $mod+quotedbl workspace 3
#bindsym $mod+apostrophe workspace 4
#bindsym $mod+parenleft workspace 5
#bindsym $mod+minus workspace 6
#bindsym $mod+egrave workspace 7
#bindsym $mod+underscore workspace 8
#bindsym $mod+ccedilla workspace 9
#bindsym $mod+agrave workspace 10
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
# switch to workspace mapping - this won't work well
#bindsym F1 workspace 1
#bindsym F2 workspace 2
#bindsym F3 workspace 3
#bindsym F4 workspace 4
#bindsym F5 workspace 5
#bindsym Mod1+F1 workspace 6
#bindsym Mod1+F2 workspace 7
#bindsym Mod1+F3 workspace 8
#bindsym Mod1+F4 workspace 9
#bindsym Mod1+F5 workspace 10
# use rebinding via ~/.Xmodmap and some free key codes instead
# keycode 67 = XF86Launch5
# keycode 68 = XF86Launch6
# keycode 69 = XF86Launch7
# keycode 70 = XF86Launch8
# keycode 71 = XF86Launch9
bindsym XF86Launch5 workspace 1
bindsym XF86Launch6 workspace 2
bindsym XF86Launch7 workspace 3
bindsym XF86Launch8 workspace 4
bindsym XF86Launch9 workspace 5
bindsym Mod1+XF86Launch5 workspace 6
bindsym Mod1+XF86Launch6 workspace 7
bindsym Mod1+XF86Launch7 workspace 8
bindsym Mod1+XF86Launch8 workspace 9
bindsym Mod1+XF86Launch9 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# border changing
bindsym $mod+b border toggle
# scratchpad
bindsym $mod+m move scratchpad
bindsym $mod+o scratchpad show
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
#bindsym semicolon resize grow width 10 px or 10 ppt
bindsym uring resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym 113 resize shrink width 10 px or 10 ppt
bindsym 116 resize grow height 10 px or 10 ppt
bindsym 111 resize shrink height 10 px or 10 ppt
bindsym 114 resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# bindings for MUTE/UNMUTE
bindsym $mod+F11 exec /usr/bin/pactl set-source-mute alsa_input.usb-Logitech_Logitech_USB_Headset-00.analog-mono yes; exec /usr/bin/pactl play-sample mute
bindsym $mod+F12 exec /usr/bin/pactl set-source-mute alsa_input.usb-Logitech_Logitech_USB_Headset-00.analog-mono no; exec /usr/bin/pactl play-sample speak
# bindings for ThinkPad keyboard
bindsym XF86AudioLowerVolume exec /usr/bin/pactl set-sink-volume 0 -20%; exec /usr/bin/pactl play-sample volume_blip; exec /usr/bin/killall -USR1 i3status
bindsym XF86AudioRaiseVolume exec /usr/bin/pactl set-sink-volume 0 +20%; exec /usr/bin/pactl play-sample volume_blip; exec /usr/bin/killall -USR1 i3status
bindsym XF86AudioMute exec /usr/bin/pactl set-sink-volume 0 0; exec /usr/bin/pactl play-sample volume_blip; exec /usr/bin/killall -USR1 i3status
bindsym XF86Launch1 exec /usr/bin/pactl play-sample that_was_easy
bindsym XF86MonBrightnessUp exec /usr/bin/xbacklight -inc 10
bindsym XF86MonBrightnessDown exec /usr/bin/xbacklight -dec 5
# bindings for MS Natural Ergonomic Keyboard 4000
bindsym XF86HomePage exec /usr/bin/xdg-open "http://www.github.com"; workspace 5
bindsym XF86Search exec /usr/bin/xdg-open "http://www.google.com"; workspace 5
bindsym XF86Mail exec /usr/bin/xdg-email; workspace 5
#bindsym XF86Launch5
#bindsym XF86Launch6
#bindsym XF86Launch7
#bindsym XF86Launch8
#bindsym XF86Launch9
#bindsym XF86AudioMute
#bindsym XF86AudioLowerVolume
#bindsym XF86AudioRaiseVolume
#bindsym XF86AudioPlay
#bindsym XF86Favourites echo DOESNOTWORK
#bindsym XF86Calculator exec /usr/bin/xcalc
bindsym XF86Calculator exec /usr/bin/xbacklight -set 100
#bindsym Help
#bindsym Undo
#bindsym Redo
#bindsym XF86New
#bindsym SunOpen
#bindsym XF86Close
#bindsym XF86Reply
#bindsym XF86MailForward
#bindsym XF86Send
#bindsym XF86Save
bindsym Print exec scrot -bs '/tmp/_SCREEN_%Y-%m-%d-%T_$wx$h.png'
bindsym $mod+Print exec scrot -b '/tmp/_SCREEN_FULL_%Y-%m-%d-%T_$wx$h.png'
# $mod+n reserved for close all notifications
# see ~/.config/dunst/dunstrc for more
# one bar on both screens
bar {
position top
status_command i3status
tray_output DP-1
}
# workspace screens
workspace 1 output DP-1
workspace 2 output DP-1
workspace 3 output DP-1
workspace 4 output DP-1
workspace 5 output DP-1
workspace 6 output DVI-D-1
workspace 7 output DVI-D-1
workspace 8 output DVI-D-1
workspace 9 output DVI-D-1
workspace 10 output DVI-D-1
# workspace assignment (use "xprop")
assign [class="^Google-chrome$"] 5
#assign [class="^URxvt$" instance="^mail$"] 4
assign [class="^Xchat$"] 6
assign [title="^weechat"] 6
assign [class="^quaternion"] 6
assign [class="^[Hh]exchat"] 6
assign [class="^Steam$"] 7
assign [class="^Vide$"] 8
#assign [class="^Decibel-audio-player.py$"] 7
assign [class="^telegram$"] 9
assign [title="Lingea Lexicon 5$"] 10
assign [title="^Stardict$"] 10
assign [class="^Sflphone$"] 10
# custom window settings
for_window [class="^XCalc$"] floating enable
for_window [class="^Zeal$" instance="scratchpad"] move scratchpad
for_window [title="^Authy"] floating enable, border normal
for_window [class="^Google-chrome$"] border 1pixel
for_window [title="Lingea Lexicon 5$"] border none
for_window [class="^GVim$"] split v, layout stacking
for_window [class="^Zeal$"] floating enable
for_window [class="^Xsane$"] floating enable
for_window [class="^SFLphone"] floating enable
for_window [class="^TeamViewer.exe$"] floating enable
for_window [title="^TeamViewer$"] floating enable
for_window [title="^Computers & Contacts$"] floating enable
for_window [title="- TeamViewer -"] floating enable
for_window [title="^Počítače a kontakty$"] floating enable
for_window [class="^Steam$"] floating enable; border none
for_window [class="^feh$"] fullscreen
for_window [class="^Meld$"] fullscreen
for_window [class="^hl_linux$"] border none; fullscreen
for_window [class="^hl2_linux$"] border none; fullscreen
for_window [title="^Renoise"] border none; fullscreen
for_window [class="^Sflphone$"] floating enable
for_window [class="^Workrave$"] floating enable
for_window [class="^History buffer$"] border none; fullscreen
for_window [title="^Google+ Hangouts is sharing your screen"] floating enable
# create scratchpad shell
#exec -name scratchpad zeal
# start the session
exec --no-startup-id ~/.i3/autostart
# eof