-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig
456 lines (328 loc) · 14.2 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
#### Configuration file for i3 window manager (4.x)
### http://i3wm.org/
## Please see http://i3wm.org/docs/userguide.html for a complete reference!
###########################################################################
################### Start Personal Startup Settings ####################
###########################################################################
# SETUP INTENDED TO WORK WITH LINUX MINT -- PORTED FROM ARCHLINUX - there maybe residual code from there#
#Dual screen setting
#exec $HOME/.i3/scripts/dualscreen_autoset.sh
#if you want transparency on non-focused windows - but i prefer to see all windows clearly on a dual-monitor
#exec_always compton --config ~/.i3/compton.conf
#new_window pixel
#get the mouse out of the way with unclutter
exec unclutter
###########################################################################
################### I 3 G A P S N E X T ##############################
###########################################################################
# Settings for I3 next gap git
# https://github.com/Airblader/i3/tree/gaps-next
# Archlinux via make & make install installation
# http://dotx.me/snippets-i3-gaps/
# delete or uncomment the following lines if you do not have it or do not
# want it
for_window [class="^.*"] border pixel 0
gaps inner 15
gaps outer 2
smart_gaps on
smart_borders on
###########################################################################
################### End Personal Startup Settings ######################
###########################################################################
# 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 some time, delete
# this file and re-run i3-config-wizard(1).
#
# This is windows key
set $mod Mod4
#font pango:UbuntuMono 12
# standard linux mint font
font pango:Noto Sans 14px
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# start a terminal
bindsym $mod+Return exec terminator
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run -i -p 'Linux Mint All Programs' -fn 'NotoSans:bold:pixelsize=16' -nb '#494949' -nf '#a9a9a9' -sf '#dbdbdb' -sb '#222222'
bindsym $mod+shift+d exec j4-dmenu-desktop --dmenu="dmenu -p 'Linux Mint Desktop' -fn 'NotoSans:bold:pixelsize=16' -nb '#494949' -nf '#a9a9a9' -sf '#dbdbdb' -sb '#222222'"
# lines vertical
#bindsym $mod+shift+d exec j4-dmenu-desktop --dmenu="dmenu -l 6 -p 'Linux Mint Desktop' -fn 'NotoSans:bold:pixelsize=16' -nb '#494949' -nf '#a9a9a9' -sf '#dbdbdb' -sb '#222222'"
#bindsym $mod+shift+d exec --no-startup-id i3-dmenu-desktop --dmenu="dmenu -fn 'Inconsolata:bold:pixelsize=20S'"
#bindsym $mod+shift+d exec j4-dmenu-desktop --dmenu="dmenu -fn 'monospace:bold:pixelsize=15'"
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m 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+m 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
# orientation for new workspaces
default_orientation horizontal
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+z layout tabbed
bindsym $mod+e layout toggle split
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+q focus parent
# focus the child container
#bindsym $mod+d focus child
# move focused container to workspace
bindsym $mod+Shift+ampersand move container to workspace 1
bindsym $mod+Shift+eacute move container to workspace 2
bindsym $mod+Shift+quotedbl move container to workspace 3
bindsym $mod+Shift+apostrophe move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+section move container to workspace 6
bindsym $mod+Shift+egrave move container to workspace 7
bindsym $mod+Shift+exclam move container to workspace 8
bindsym $mod+Shift+ccedilla move container to workspace 9
bindsym $mod+Shift+agrave move container to workspace 10
# 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 exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
bindsym $mod+r mode "resize"
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
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 m resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
###########################################################################
###########################################################################
################### Personal Settings ##################################
###########################################################################
###########################################################################
# 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+section workspace 6
bindsym $mod+egrave workspace 7
bindsym $mod+exclam workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10
#if dualscreen is on
# setting variables for later use
# use xrandr to know the names of your monitors
# use this line to tell which monitor is on the right
# xrandr --output DVI-I-2 --right-of DVI-I-1 --auto
# there is a script at the beginning that covers the dual monitors
#set $firstMonitor DVI-I-2
#set $secondMonitor VGA-0
set $firstMonitor DVI-I-1
set $secondMonitor DVI-I-2
#set $firstMonitor DVI-I-2
#set $secondMonitor DVI-I-3
#set $firstMonitor DVI-0
#set $secondMonitor DVI-1
# dual monitors
workspace 1 output $firstMonitor
workspace 2 output $firstMonitor
workspace 3 output $firstMonitor
workspace 4 output $firstMonitor
workspace 5 output $firstMonitor
workspace 6 output $secondMonitor
workspace 7 output $secondMonitor
workspace 8 output $secondMonitor
workspace 9 output $secondMonitor
workspace 10 output $secondMonitor
#mouse settings
# The middle button over a titlebar kills the window
#bindsym --release button2 kill
# The middle button and a modifer over any part of the window kills the window
#bindsym --whole-window $mod+button2 kill
# The right button toggles floating
bindsym button3 floating toggle
bindsym $mod+button3 floating toggle
# The side buttons move the window around
bindsym button9 move left
bindsym button8 move right
## Assign section
assign [class="Firefox"] → 1
assign [class="sublime-text"] → 2
assign [class="sublime_text"] → 2
assign [class="Sublime_text"] → 2
assign [class="Thunar"] → 8
assign [class="Nemo"] → 8
assign [class="Geary"] → 9
assign [class="Spotify"] → 10
for_window [class="Firefox"] focus
#startup applications you always use
#background applications
#variety is taking care of rotating wallpapers
#exec nitrogen --restore
exec_always --no-startup-id numlockx on
#floating enabled from some programs
for_window [class="Gnome-disks"] floating enable
for_window [class="^Skype$"] floating enable
for_window [class="^Gnome-font-viewer$"] floating enable
#for_window [class="^Thunar$"] floating enable
for_window [class="^Gpick$"] floating enable
#for_window [class="^Vlc$"] floating enable
#for_window [class="^Spotify$"] floating enable workspace 10
#for_window [instance="gimp"] floating enable
for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
for_window [instance="variety"] floating enable
for_window [class="Gnome-system-monitor"] floating enable
for_window [class="Brasero"] floating enable
for_window [class="Xfburn"] floating enable
for_window [class="Xfce4-appfinder"] floating enable
for_window [class="Wine"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="CopyAgent"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="^Preferences$"] floating enable
for_window [window_role="setup"] floating enable
for_window [title="^Terminator Preferences$"] floating enable
for_window [class="Font-manager"] floating enable
for_window [class="System-config-printer.py"] floating enable
for_window [class="Nitrogen"] floating enable
for_window [title="Copying"] floating enable
for_window [title="Deleting"] floating enable
for_window [title="Moving"] floating enable
for_window [class="Unetbootin.elf"] floating enable
for_window [class="Galculator"] floating enable
for_window [class="Usb-creator-gtk"] floating enable
for_window [class="MintUpdate.py"] floating enable
#for_window [class="Bleachbit"] floating enable
for_window [class="Hexchat"] floating disable
#start tray applications
# this time over the path is f**up - check next clean install
exec --no-startup-id nm-applet
exec dropbox start
exec /opt/copy-client/CopyAgent
exec variety
exec mintupdate-launcher
exec cinnamon-sound-applet
#workspace related applications (use --no-startup-id if needed)
exec firefox
exec subl
exec geary
exec spotify
#exec thunar
# copy paste this in terminal
# gsettings set org.nemo.desktop show-desktop-icons false
# else nemo will still open a desktop
exec nemo --no-desktop
#Popups during fullscreen mode
popup_during_fullscreen smart
#personal app launchers
#Filemanagers
#bindsym $mod+Shift+Return exec thunar
bindsym $mod+Shift+Return exec nemo --no-desktop
#F1-F12
#mod1 = ALT
bindsym control+mod1+f exec firefox
bindsym control+mod1+g exec geary
bindsym control+mod1+s exec spotify
bindsym control+mod1+t exec subl
#bindsym control+mod1+b exec thunar
bindsym control+mod1+b exec nemo --no-desktop
bindsym control+mod1+c exec catfish
bindsym control+mod1+m exec gnome-system-monitor
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id ~/.i3/scripts/i3exit.sh lock, mode "default"
bindsym e exec --no-startup-id ~/.i3/scripts/i3exit.sh logout, mode "default"
bindsym s exec --no-startup-id ~/.i3/scripts/i3exit.sh suspend, mode "default"
bindsym h exec --no-startup-id ~/.i3/scripts/i3exit.sh hibernate, mode "default"
bindsym r exec --no-startup-id ~/.i3/scripts/i3exit.sh reboot, mode "default"
bindsym Shift+s exec --no-startup-id ~/.i3/scripts/i3exit.sh shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Pause mode "$mode_system"
# Screen Shots
bindsym Print exec scrot -e ~/Pictures/capt-$(date '+%Y-%m-%d-%H%M%S').png
# next/previous workspace
bindsym Mod1+Tab workspace next
bindsym Mod1+Shift+Tab workspace prev
bindsym $mod+Tab workspace back_and_forth
# audio - Spotify
bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '5%+'"
bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '5%-'"
bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
bindsym XF86AudioNext exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
bindsym XF86AudioPrev exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
bindsym XF86AudioStop exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
# bar toggle, hide or show
bindsym $mod+b bar mode toggle
# Border control
hide_edge_borders both
bindsym $mod+shift+b exec i3-msg border toggle
#changing border style
bindsym $mod+t border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
#####COLORS#####
bar {
workspace_buttons yes
status_command i3blocks -c ~/.i3/.i3blocks.conf
#status_command i3status --config ~/.i3/i3status
#font pango:UbuntuMono 14
#you can change the place via xrandr
#output DVI-0
colors {
background #2F2F2F
statusline #eeeeee
separator #666666
# border backgr. text
focused_workspace #a9a9a9 #222222 #a9a9a9
active_workspace #a9a9a9 #222222 #a9a9a9
inactive_workspace #a9a9a9 #5f676a #a9a9a9
urgent_workspace #4A4A4A #4A4A4A #a9a9a9
}
}
client.background #242424 #242424 #242424
client.focused #4A4A4A #4A4A4A #e5e5e5 #ff0000
client.unfocused #222222 #222222 #aaaaaa #ff0000
client.focused_inactive #222222 #222222 #a9a9a9 #ff0000
client.urgent #4A4A4A #4A4A4A #f7f7f7 #ff0000