Просмотр исходного кода

Give at least some order to main cunstomizations

Alois Mahdal 8 лет назад
Родитель
Сommit
d221b00d0d
1 измененных файлов: 57 добавлений и 68 удалений
  1. 57
    68
      dotfiles/i3/config

+ 57
- 68
dotfiles/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 some time, delete
5
-# this file and re-run i3-config-wizard(1).
6
-#
7
 
1
 
8
-# i3 config file (v4)
9
-#
10
-# Please see http://i3wm.org/docs/userguide.html for a complete reference!
2
+#------------------------------------------------------------------------#
3
+## Basically basic                                                      ##
4
+#------------------------------------------------------------------------#
11
 
5
 
12
 set $spn SHELLFU_PRETTY=notify
6
 set $spn SHELLFU_PRETTY=notify
13
 set $mod Mod4
7
 set $mod Mod4
14
 
8
 
15
-# Font for window titles. Will also be used by the bar unless a different font
16
-# is used in the bar {} block below.
17
-# This font is widely installed, provides lots of unicode glyphs, right-to-left
18
-# text rendering and scalability on retina/hidpi displays (thanks to pango).
19
-font pango:DejaVu Sans Mono 11
20
-#font -*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*
21
-# Before i3 v4.8, we used to recommend this one as the default:
22
-# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
23
-# The font above is very space-efficient, that is, it looks good, sharp and
24
-# clear in small sizes. However, its unicode glyph coverage is limited, the old
25
-# X core fonts rendering does not support right-to-left and this being a bitmap
26
-# font, it doesn’t scale on retina/hidpi displays.
27
-
28
-# Use Mouse+$mod to drag floating windows to their wanted position
29
 floating_modifier $mod
9
 floating_modifier $mod
10
+mouse_warping none
11
+hide_edge_borders vertical
12
+font pango:DejaVu Sans Mono 11
30
 
13
 
31
 # change focus
14
 # change focus
32
 bindsym $mod+h              focus left
15
 bindsym $mod+h              focus left
119
 bindsym $mod+Shift+Tab move scratchpad
102
 bindsym $mod+Shift+Tab move scratchpad
120
 bindsym $mod+Tab scratchpad show
103
 bindsym $mod+Tab scratchpad show
121
 
104
 
122
-# mark mode
105
+bindsym $mod+Shift+r restart
106
+
107
+
108
+#------------------------------------------------------------------------#
109
+## Maybe Modes                                                          ##
110
+#------------------------------------------------------------------------#
111
+
123
 bindsym $mod+backslash               mode "mark"
112
 bindsym $mod+backslash               mode "mark"
124
 
113
 
125
 mode "mark" {
114
 mode "mark" {
169
   bindsym Return            mode "default"
158
   bindsym Return            mode "default"
170
 }
159
 }
171
 
160
 
172
-
173
-# reload the configuration file
174
-#bindsym $mod+Shift+c reload
175
-# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
176
-bindsym $mod+Shift+r restart
177
-
178
-
179
 bindsym $mod+r mode "resize"
161
 bindsym $mod+r mode "resize"
180
 mode "resize" {
162
 mode "resize" {
181
         bindsym Left        resize shrink   width   200 px or 12 ppt
163
         bindsym Left        resize shrink   width   200 px or 12 ppt
191
         bindsym Escape      mode "default"
173
         bindsym Escape      mode "default"
192
 }
174
 }
193
 
175
 
194
-# Start i3bar to display a workspace bar (plus the system information i3status
195
-# finds out, if available)
196
 bar {
176
 bar {
197
         status_command i3status
177
         status_command i3status
198
         bindsym button2 exec thunar
178
         bindsym button2 exec thunar
202
         #     ‧•┇╻╹╹╿═╎╏◆◾║︙⎪∣∕⟘⟙∙∼⦀⦑⦒⦚⧸⧹▓▒░⧻⧺┆˘͡͡ːˌ˷|・፧።
182
         #     ‧•┇╻╹╹╿═╎╏◆◾║︙⎪∣∕⟘⟙∙∼⦀⦑⦒⦚⧸⧹▓▒░⧻⧺┆˘͡͡ːˌ˷|・፧።
203
 }
183
 }
204
 
184
 
205
-# bar {
206
-#         id sardine-moc
207
-#         position top
208
-#         workspace_buttons no
209
-#         tray_output none
210
-#         binding_mode_indicator no
211
-#         status_command ~/.i3/bin/13bar-sardine-moc
212
-# }
213
-# bindsym $mod+minus bar mode toggle sardine-moc
214
-
215
-# show CapsLock state in statusbar
216
 bindsym Caps_Lock           mode "caps"
185
 bindsym Caps_Lock           mode "caps"
217
 bindsym Shift+Caps_Lock     mode "caps"
186
 bindsym Shift+Caps_Lock     mode "caps"
218
 bindsym Ctrl+Caps_Lock      mode "caps"
187
 bindsym Ctrl+Caps_Lock      mode "caps"
224
         bindsym $mod+Caps_Lock  mode "default"
193
         bindsym $mod+Caps_Lock  mode "default"
225
 }
194
 }
226
 
195
 
196
+#------------------------------------------------------------------------#
197
+## Openers                                                              ##
198
+#------------------------------------------------------------------------#
227
 
199
 
228
-### MINE
229
 bindsym $mod+Return         exec "urxvt"
200
 bindsym $mod+Return         exec "urxvt"
230
 bindsym $mod+Shift+Return   exec "xfce4-terminal"
201
 bindsym $mod+Shift+Return   exec "xfce4-terminal"
202
+bindsym $mod+Home           exec "$spn bmo menu home"
203
+bindsym $mod+Shift+Home     exec "thunar"
204
+bindsym $mod+p              exec "$spn bmo menu run"
205
+bindsym $mod+Shift+p        exec "$spn bmo menu run_hist"
206
+
207
+#------------------------------------------------------------------------#
208
+## WWW magic mind readers                                               ##
209
+#------------------------------------------------------------------------#
210
+
231
 bindsym $mod+b              exec "$spn bmo uris -1 | head -1 | bmo xuris -a"
211
 bindsym $mod+b              exec "$spn bmo uris -1 | head -1 | bmo xuris -a"
232
 bindsym $mod+c              exec "$spn bmo uris -1 | head -1 | bmo xuris -a -c"
212
 bindsym $mod+c              exec "$spn bmo uris -1 | head -1 | bmo xuris -a -c"
233
 bindsym $mod+Shift+b        exec "$spn bmo uris -1 | bmo xuris"
213
 bindsym $mod+Shift+b        exec "$spn bmo uris -1 | bmo xuris"
234
 bindsym $mod+Shift+c        exec "$spn bmo uris -1 | bmo xuris -c"
214
 bindsym $mod+Shift+c        exec "$spn bmo uris -1 | bmo xuris -c"
235
 bindsym $mod+i              exec "$spn bmo menu uris"
215
 bindsym $mod+i              exec "$spn bmo menu uris"
236
 bindsym $mod+Shift+i        exec "$spn bmo menu www_hist"
216
 bindsym $mod+Shift+i        exec "$spn bmo menu www_hist"
237
-bindsym $mod+d              exec xbacklight -dec 49
238
-bindsym $mod+Shift+d        exec xbacklight -inc 5
239
 bindsym $mod+q              exec "$spn bmo clip cat | sed 's/^/g /' | bmo uris | bmo xuris"
217
 bindsym $mod+q              exec "$spn bmo clip cat | sed 's/^/g /' | bmo uris | bmo xuris"
240
 bindsym $mod+Shift+q        exec "$spn bmo clip cat | perl -ne '$a=qx(bmo menu query); chomp $a; print qq/$a $_/' | bmo uris | bmo xuris"
218
 bindsym $mod+Shift+q        exec "$spn bmo clip cat | perl -ne '$a=qx(bmo menu query); chomp $a; print qq/$a $_/' | bmo uris | bmo xuris"
241
 #FIXME:                                               ^^^ this is really uuuugggglyyyy
219
 #FIXME:                                               ^^^ this is really uuuugggglyyyy
220
+bindsym $mod+t              exec "acclive"
242
 
221
 
243
-bindsym $mod+Escape         exec "$spn bmo iam afk"
244
-bindsym $mod+Shift+Escape   exec "$spn bmo iam gone"
245
 
222
 
246
-bindsym $mod+Home           exec "$spn bmo menu home"
247
-bindsym $mod+Shift+Home     exec "thunar"
223
+#------------------------------------------------------------------------#
224
+## Killers                                                              ##
225
+#------------------------------------------------------------------------#
226
+
227
+bindsym $mod+Delete         kill
228
+bindsym $mod+Shift+Delete   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-msg exit'"
248
 
229
 
249
-bindsym $mod+Insert         exec "$spn bmo clip save"
250
-bindsym $mod+Shift+Insert   exec "$spn bmo clip open"
230
+#------------------------------------------------------------------------#
231
+## Desktop states                                                       ##
232
+#------------------------------------------------------------------------#
251
 
233
 
234
+bindsym $mod+Escape         exec "$spn bmo iam afk"
235
+bindsym $mod+Shift+Escape   exec "$spn bmo iam gone"
252
 bindsym $mod+m              exec "$spn bmo menu status"
236
 bindsym $mod+m              exec "$spn bmo menu status"
253
 bindsym $mod+Shift+m        exec "i3-dmenu-desktop --dmenu='bmo dmenu'"
237
 bindsym $mod+Shift+m        exec "i3-dmenu-desktop --dmenu='bmo dmenu'"
254
 bindsym $mod+o              exec "$spn bmo menu context"
238
 bindsym $mod+o              exec "$spn bmo menu context"
255
 bindsym $mod+Shift+o        exec "task context none"
239
 bindsym $mod+Shift+o        exec "task context none"
256
-bindsym $mod+p              exec "$spn bmo menu run"
257
-bindsym $mod+Shift+p        exec "$spn bmo menu run_hist"
258
 
240
 
259
-bindsym $mod+t              exec "acclive"
260
 
241
 
261
-# Note: 57 translates to 'N' so these are basically $mod+n abd $mod+Shift+n
262
-bindcode $mod+57            exec "$spn bmo kb next"
263
-bindcode $mod+Shift+57      exec "$spn bmo kb home"
242
+#------------------------------------------------------------------------#
243
+## Desktop-ey other stuff                                               ##
244
+#------------------------------------------------------------------------#
264
 
245
 
265
-bindsym XF86AudioRaiseVolume exec "$spn bmo au up"
266
-bindsym XF86AudioLowerVolume exec "$spn bmo au down"
267
-bindsym XF86AudioMute        exec "$spn bmo au flip"
246
+bindcode $mod+57                exec "$spn bmo kb next"     # 57 translates to 'N' so these are basically $mod+n abd $mod+Shift+n
247
+bindcode $mod+Shift+57          exec "$spn bmo kb home"
248
+bindsym $mod+Insert             exec "$spn bmo clip save"
249
+bindsym $mod+Shift+Insert       exec "$spn bmo clip open"
250
+bindsym $mod+d                  exec "xbacklight -dec 49"
251
+bindsym $mod+Shift+d            exec "xbacklight -inc 5"
252
+bindsym XF86AudioRaiseVolume    exec "$spn bmo au up"
253
+bindsym XF86AudioLowerVolume    exec "$spn bmo au down"
254
+bindsym XF86AudioMute           exec "$spn bmo au flip"
268
 
255
 
269
-bindsym $mod+Delete         kill
270
-bindsym $mod+Shift+Delete   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-msg exit'"
271
-
272
-mouse_warping none
273
-
274
-hide_edge_borders vertical
275
 
256
 
257
+#------------------------------------------------------------------------#
258
+## Less smart apps                                                      ##
259
+#------------------------------------------------------------------------#
276
 
260
 
277
 for_window [class="Shutter"]    floating enable
261
 for_window [class="Shutter"]    floating enable
278
 for_window [class="Orage"]      floating enable
262
 for_window [class="Orage"]      floating enable
279
 
263
 
264
+
265
+#------------------------------------------------------------------------#
266
+## autoexec.bat                                                         ##
267
+#------------------------------------------------------------------------#
268
+
280
 exec "newfeh"
269
 exec "newfeh"
281
 exec "dunst"
270
 exec "dunst"
282
 exec "owncloud"
271
 exec "owncloud"