-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
336 lines (259 loc) · 12.6 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
# 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. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
#for some reason font-size has to be "10" on intel, and "12" on nvidia to get same size?
###font pango:DejaVu Sans Mono 8
font pango:monospace 10
#make notifications behave
for_window [class="Xfce4-notifyd"] floating enable
for_window [class="Xfce4-notifyd"] border none
for_window [class="YADWIN"] border none
for_window [class="YADWIN"] floating enable
for_window [instance="Download"] floating enable
for_window [class="Pnmixer"] floating enable
for_window [window_role="plugin_ui"] floating enable
for_window [title="Menu Update"] floating enable
for_window [title="___"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [class="(?i)pavucontrol"] floating enable, move position mouse
#fix i3-gaps title bars
for_window [class="^.*"] border pixel 1
#smart_gaps on
#new_window none
# 0px Border Windows
for_window [class="chrome"] border none
for_window [class="Firefox"] border none
#for_window [class="Firefox"] border normal
#for_window [class="Firefox"] hide_edge_borders vertical
#for_window [class="chrome"] hide_edge_borders vertical
for_window [class="explorer.exe"] floating enable
# config colors
# class border backgr. text indicator
client.focused #283E4E #285577 #FFFFFF #49BBD2
client.focused_inactive #314757 #314757 #ffffff #484e50
client.unfocused #505050 #202020 #CCCCCC #2e9ef4
client.urgent #2f343a #900000 #ffffff #900000
workspace_layout tabbed
# Use Mouse1+$mod to drag floating windows to their wanted position
# Use Mouse3+$mod to change window size via dragging
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run -l 10 -i
###bindsym $mod+Shift+d exec $HOME/.i3/i3bin/lightwrapp.sh
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon 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+semicolon 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+h 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, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
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
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace number 1: www
bindsym $mod+2 workspace number 2: terms
bindsym $mod+3 workspace number 3: subl
bindsym $mod+4 workspace number 4: steam
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1: www
bindsym $mod+Shift+2 move container to workspace number 2: terms
bindsym $mod+Shift+3 move container to workspace number 3: subl
bindsym $mod+Shift+4 move container to workspace number 4: steam
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
exec i3-msg rename workspace 1 to "1: www"
exec i3-msg rename workspace 2 to "2: terms"
exec i3-msg rename workspace 3 to "3: subl"
exec i3-msg rename workspace 4 to "4: steam"
# move current workspace between monitors
bindsym $mod+Control+Left move workspace to output left
bindsym $mod+Control+Down move workspace to output down
bindsym $mod+Control+Up move workspace to output up
bindsym $mod+Control+Right move workspace to output right
bindsym $mod+Tab workspace back_and_forth
# rename current workspace
bindsym $mod+Control+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
#Program shortcuts
###bindsym XF86AudioPlay exec $HOME/src/adm-dotfiles/i3bin/mmtoggle.sh
###bindsym XF86AudioStop exec $HOME/src/adm-dotfiles/i3bin/mmstop.sh
###bindsym XF86AudioNext exec $HOME/src/adm-dotfiles/i3bin/mmnext.sh
###bindsym XF86AudioPrev exec $HOME/src/adm-dotfiles/i3bin/mmprev.sh
bindsym XF86AudioMute exec $HOME/src/adm-dotfiles/i3bin/pulseaudio-ctl mute
bindsym XF86AudioRaiseVolume exec $HOME/src/adm-dotfiles/i3bin/pulseaudio-ctl up 1
bindsym XF86AudioLowerVolume exec $HOME/src/adm-dotfiles/i3bin/pulseaudio-ctl down 1
bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness
# 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 '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'"
# resize window (you can also use the mouse for that)
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 semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 1 px or 1 ppt
bindsym Down resize grow height 1 px or 1 ppt
bindsym Up resize shrink height 1 px or 1 ppt
bindsym Right resize grow width 1 px or 1 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
set $mode_gaps Gaps: (o) outer, (i) inner, (0) Cur=0, (d) global=0
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym 0 mode "default", exec --no-startup-id i3-msg "gaps inner current set 0" && i3-msg "gaps outer current set 0"
bindsym d mode "default", exec --no-startup-id i3-msg "gaps inner all set 0" && i3-msg "gaps outer alld set 0"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
set $mode_power (l)ock (s)uspend (h)ibernate (r)eboot (p)oweroff
mode "$mode_power" {
bindsym l mode "default", exec --no-startup-id $HOME/src/adm-dotfiles/i3bin/i3exit lock
#bindsym e mode "default", exec --no-startup-id $HOME/src/adm-dotfiles/i3bin/i3exit logout
bindsym s mode "default", exec --no-startup-id $HOME/src/adm-dotfiles/i3bin/i3exit suspend
bindsym h mode "default", exec --no-startup-id $HOME/src/adm-dotfiles/i3bin/i3exit hibernate
bindsym r mode "default", exec --no-startup-id $HOME/src/adm-dotfiles/i3bin/i3exit reboot
bindsym p mode "default", exec --no-startup-id $HOME/src/adm-dotfiles/i3bin/i3exit shutdown
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Control+l mode "$mode_power"
#bindsym Mod1+Control+l mode "$mode_power"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
#for some reason I cannot set which monitor is primary, so hard code display name
tray_output DP-0
#tray_output eDP1
colors {
background #111111
}
#status_command py3status -c /home/admalledd/.i3/i3status.conf
status_command i3blocks -c $HOME/src/adm-dotfiles/i3blocks.conf
}
#TODO: make/find a handy script to fetch posts from http://www.reddit.com/r/ImaginaryLandscapes/ (and maybe other specart subs?)
###exec_always --no-startup-id feh --bg-tile $HOME/Pictures/Wallpapers/garret-aj-drydock1.jpg
#Keep my monitors on unless I turn them off.
exec --no-startup-id xset -dpms
exec --no-startup-id xset s off
#because network stuff is a pain on the cmdline and this works well enough.
exec --no-startup-id nm-applet
#notification daemon, nice and style-able too.
exec --no-startup-id dunst
#Compton config is bugged, it is causing screen non-redraw issues
#Doesn't help that the only reason I want it is to stop the screen tearing, but sadly
#Nvidia+IGP means that actually is not possible on my laptop, while on my desktop doing the fix mentioned below works fine.
# See for doc on known nvidia bug (with no fix planned?):
# https://devtalk.nvidia.com/default/topic/775691/linux/vsync-issue-nvidia-prime-ux32vd-with-gt620-m-/1/
# http://us.download.nvidia.com/XFree86/Linux-x86/343.13/README/randr14.html
#exec --no-startup-id compton --config $HOME/.config/compton.conf
#for screen tearing on nvidia (not primus): make sure driver is 352+, fixes most issues. If not, below is the command to force pipelining.
#exec --no-startup-id nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
#Desktop screen tearing nvidia fix (also demo multi-monitor command, maybe make this a script helper, pull info from xrandr?)
#exec --no-startup-id nvidia-settings --assign CurrentMetaMode="DVI-I-1: nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }, DVI-D-0: nvidia-auto-select +1920+0 { ForceFullCompositionPipeline = On }"
#exec --no-startup-id $HOME/bin/start_mpd.sh
exec --no-startup-id $HOME/bin/touchpad_toggle.sh off
#start keyboard macro management daemon (Corsair K70 RGB) see: https://github.com/ccMSC/ckb (I am running testing branch atm)
#exec --no-startup-id /usr/local/bin/ckb --background