forked from serebrov/i3conf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
320 lines (264 loc) · 11.7 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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# font for window titles. ISO 10646 = Unicode
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font pango:DejaVu Sans Mono 14
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# show/hide the status bar
bindsym $mod+0 exec i3 bar mode toggle
# start a terminal
# bindsym $mod+Return exec i3-sensible-terminal
# bindsym $mod+Return exec konsole --hide-menubar --hide-tabbar
bindsym $mod+Return exec konsole --profile profile --hide-menubar --hide-tabbar -e /usr/bin/zsh
# kill focused window
bindsym $mod+Shift+Q kill
bindsym $mod+Q kill
# start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run
#
#colors from https://github.com/lkraav/dotfiles/blob/master/.i3/config
#bindsym $mod+d exec i3-dmenu-desktop --dmenu='dmenu -fn monospace:bold:size=9 -nb "#eee8d5" -nf "#073642" -sb "#dc322f" -p "> " -h 19'
bindsym $mod+d exec dmenu_run -fn monospace:bold:size=9 -nb '#eee8d5' -nf '#073642'
# -sb '#dc322f' -p '> '
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+H move left
bindsym $mod+Shift+J move down
bindsym $mod+Shift+K move up
bindsym $mod+Shift+L 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
# split in horizontal orientation
bindsym $mod+z split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout default
# toggle tiling / floating
# also moves back from the scratchpad
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindcode $mod+d focus child
# switch to workspace
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
# move focused container to workspace
bindsym $mod+Shift+exclam move workspace 1
bindsym $mod+Shift+at move workspace 2
bindsym $mod+Shift+numbersign move workspace 3
bindsym $mod+Shift+dollar move workspace 4
bindsym $mod+Shift+percent move workspace 5
bindsym $mod+Shift+asciicircum move workspace 6
bindsym $mod+Shift+ampersand move workspace 7
bindsym $mod+Shift+asterisk move workspace 8
bindsym $mod+Shift+parenleft move workspace 9
bindsym $mod+Shift+parenright move workspace 10
bindsym $mod+Shift+Left move workspace to output left
bindsym $mod+Shift+Right move workspace to output right
# reload the configuration file
bindsym $mod+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+R restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+E exit
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# They resize the border in the direction you pressed, e.g.
# when pressing left, the window is resized so that it has
# more space on its left
bindsym h resize shrink left 10 px or 10 ppt
bindsym Shift+H resize grow left 10 px or 10 ppt
bindsym j resize shrink down 10 px or 10 ppt
bindsym Shift+J resize grow down 10 px or 10 ppt
bindsym k resize shrink up 10 px or 10 ppt
bindsym Shift+K resize grow up 10 px or 10 ppt
bindsym l resize shrink right 10 px or 10 ppt
bindsym Shift+L resize grow right 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink left 10 px or 10 ppt
bindsym Shift+Left resize grow left 10 px or 10 ppt
bindsym Down resize shrink down 10 px or 10 ppt
bindsym Shift+Down resize grow down 10 px or 10 ppt
bindsym Up resize shrink up 10 px or 10 ppt
bindsym Shift+Up resize grow up 10 px or 10 ppt
bindsym Right resize shrink right 10 px or 10 ppt
bindsym Shift+Right resize grow right 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#https://faq.i3wm.org/question/279/how-do-you-use-i3-comfortably/
# sudo pm-suspend does't work, TODO: fix, see the link below
# http://stackoverflow.com/questions/20312961/why-sudo-pm-suspend-does-not-work-in-i3-tiling-window-manager
mode "(s)leep (h)ybernate (p)owersave (r)estart shut(d)own" {
bindsym s exec sudo pm-suspend; mode "default"
bindsym h exec sudo pm-hibernate; mode "default"
bindsym p exec sudo pm-powersave; mode "default"
bindsym d exec sudo 'shutdown -h now'; mode "default"
bindsym r exec sudo 'shutdown -r now'; mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+n mode "(s)leep (h)ybernate (p)owersave (r)estart shut(d)own"
mode "Utils (a)lsamixer (h)top (p)avucontrol (u)nity-control-center (r)elod audio system (n)etwork-manager restart" {
bindsym a exec gnome-terminal --role=xterm_util -- 'alsamixer -c 1'; mode "default"
bindsym h exec gnome-terminal --role=xterm_util --geometry=150x48 -- 'htop'; mode "default"
bindsym p exec pavucontrol; mode "default"
bindsym u exec XDG_CURRENT_DESKTOP=Unity unity-control-center; mode "default"
# r - reload audio system, can be useful when switching USB audio input/output devices
# see http://askubuntu.com/questions/230888
bindsym r exec pulseaudio -k && sudo alsa force-reload; mode "default"
# n - reload network manager
bindsym n exec sudo service network-manager restart; mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+u mode "Utils (a)lsamixer (h)top (p)avucontrol (u)nity-control-center (r)elod audio system (n)etwork-manager restart"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
#mode hide
mode dock
#modifier $mod
status_command ~/.i3/i3status-plus.py
# position bottom
# mode dock
# workspace_buttons yes
# tray_output primary
colors {
background #000000
statusline #999999
focused_workspace #ffffff #285577
active_workspace #ffffff #333333
inactive_workspace #888888 #222222
urgent_workspace #ffffff #900000
}
# colors {
# # solarized
# background #073642
# statusline #eee8d5
# focused_workspace #cb4b16 #cb4b16 #eee8d5
# active_workspace #cb4b16 #cb4b16 #eee8d5
# inactive_workspace #b58900 #b58900 #eee8d5
# }
}
### Additional settings
focus_follows_mouse no
workspace_auto_back_and_forth yes
workspace_layout tabbed
# http://i3wm.org/docs/user-contributed/lzap-config.html
# border changing
bindsym $mod+b border toggle
# scratchpad
bindsym $mod+m move scratchpad
bindsym $mod+o scratchpad show
# http://i3wm.org/docs/user-contributed/lzap-config.html
# workspace assignment (use "xprop")
assign [class="^Deadbeef$"] 2
assign [class="^Psensor$"] 2
assign [class="^Empathy$"] 3
assign [class="^Pidgin$"] 5
assign [class="^Skype$"] 5
assign [class="^Upwork$"] 5
# assign [class="^Firefox$"] 4
# assign [class="^URxvt$" instance="^mail$"] 4
# assign [title="Lingea Lexicon 5$"] 8
# http://i3wm.org/docs/user-contributed/lzap-config.html
# http://habrahabr.ru/post/150100/
for_window [class="^Gcalctool$"] floating enable
for_window [class="^Gnome-keyring-prompt-3$"] floating enable
for_window [class="^Nautilus$" instance="^file_progress$"] floating enable
for_window [class="^Gmrun$" instance="^gmrun$"] floating enable
#for_window [class="^SkypeTab$" instance="^SkypeTab$"] focus; move up; resize shrink down 30 px or 30 ppt; workspace 1: desktop
for_window [class="^Gnome-terminal$"] border none
for_window [class="^Konsole$"] border none
for_window [window_role="xterm_scratchpad"] border 1pixel, move scratchpad
for_window [title="UXTermScratch"] border 1pixel, move scratchpad
for_window [title="termscratch"] border 1pixel, move scratchpad
for_window [window_role="xterm_util"] floating enable, border none
for_window [window_role="popup_editor"] border none, floating enable
for_window [class="^Google-chrome$"] border none
for_window [class="^Psensor$"] floating enable
for_window [class="^Pidgin$"] floating enable
for_window [class="^Skype$"] floating enable
for_window [class="urxvt"] border none
for_window [title="Wicd Network Manager"] floating enable, border normal
for_window [title="- Shutter"] floating enable, border normal
for_window [title="Only If"] floating enable
for_window [class="^Anki$"] floating enable
for_window [class="keepassxc"] floating enable; border none
# Screenshot:
bindsym Print exec scrot 'f%Y-%m-%d-%s_$wx$h.png' -e 'mv $f /home/seb/'
# shutter is great, but only selection screenshot works
bindsym $mod+Print exec shutter
# Gmrun (sudo apt-get install gmrun)
bindsym $mod+g exec gmrun
# Also Gmrun just to disable mod+p (it switches monitors off)
# bindsym $mod+p exec gmrun
# Show hide the gnome-panel
bindsym $mod+p exec gsettings get org.gnome.gnome-panel.layout toplevel-id-list | grep top-panel && gsettings set org.gnome.gnome-panel.layout toplevel-id-list "[]" || gsettings set org.gnome.gnome-panel.layout toplevel-id-list "['top-panel']"
# http://faq.i3wm.org/question/125/how-to-change-the-systems-volume/
#bindsym $mod+KP_Add exec amixer -q set Master 2dB+ unmute
#bindsym $mod+KP_Subtract exec amixer -q set Master 2dB- unmute
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
#bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute
#bindsym XF86AudioMute exec amixer -q set Master toggle
bindsym $mod+KP_Add exec --no-startup-id "~/.i3/scripts/volnoti-handle.sh up"
bindsym $mod+KP_Subtract exec --no-startup-id "~/.i3/scripts/volnoti-handle.sh down"
bindsym XF86AudioRaiseVolume exec --no-startup-id "~/.i3/scripts/volnoti-handle.sh up"
bindsym XF86AudioLowerVolume exec --no-startup-id "~/.i3/scripts/volnoti-handle.sh down"
bindsym XF86AudioMute exec --no-startup-id "~/.i3/scripts/volnoti-handle.sh mute"
bindsym XF86MonBrightnessUp exec /usr/bin/xbacklight -inc 10
bindsym XF86MonBrightnessDown exec /usr/bin/xbacklight -dec 5
bindsym $mod+t exec "~/.i3/scripts/touchpad-toggle.sh"
bindsym $mod+Shift+P exec "~/deadbeef/deadbeef & pidgin &"
# see https://github.com/cknadler/vim-anywhere
bindsym $mod+i exec "~/.vim-anywhere/bin/run"
# class border backgr. text indicator
client.focused #859900 #859900 #fdf6e3 #2e9ef4
client.focused_inactive #268bd2 #268bd2 #fdf6e3 #484e50
client.unfocused #333333 #93a1a1 #fdf6e3 #292d2e
# exec xsetroot -solid "#e1dce0"
# autostart
exec ~/.i3/autostart
# exec --no-startup-id wmctrl -c Plasma
# exec --no-startup-id unity-settings-daemon &