-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
353 lines (241 loc) · 9.93 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
# 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).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
##########
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Fira Mono 11
# Default window style
default_border pixel 1
default_floating_border pixel 4
# Color theme
set_from_resource $black i3wm.color0 #000000
set_from_resource $darkgrey i3wm.color8 #333333
set_from_resource $darkred i3wm.color1 #ffa0a0
set_from_resource $red i3wm.color9 #ffa0a0
set_from_resource $darkgreen i3wm.color2 #98fb98
set_from_resource $green i3wm.color10 #9acd32
set_from_resource $darkyellow i3wm.color3 #f0e68c
set_from_resource $yellow i3wm.color11 #f0e68c
set_from_resource $darkblue i3wm.color4 #87ceeb
set_from_resource $blue i3wm.color12 #87ceeb
set_from_resource $darkmagenta i3wm.color5 #ffa0a0
set_from_resource $magenta i3wm.color13 #ffa0a0
set_from_resource $darkcyan i3wm.color6 #87ceeb
set_from_resource $cyan i3wm.color14 #87ceeb
set_from_resource $lightgrey i3wm.color7 #ffffff
# class border backgr. text indicator child_border
client.focused #333333 #333333 #f08000 #333333 #333333
client.focused_inactive #000000 #333333 #ffffff #f08000 #000000
client.unfocused #000000 #111111 #a0a0a0 #292d2e #000000
client.urgent #000000 #f08000 #000000 #900000 #900000
# client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #333333
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "01-Home"
set $ws2 "02-Web"
for_window [class="Vivaldi-stable"] move container to workspace $ws2
set $ws3 "03"
set $ws4 "04"
set $ws5 "05"
set $ws6 "06"
set $ws7 "07"
set $ws8 "08-Social"
for_window [class="Tweetdeck"] move container to workspace $ws8
set $ws9 "09-Mail"
for_window [class="Thunderbird"] move container to workspace $ws9
set $ws10 "10-Chat"
for_window [class="Caprine"] move container to workspace $ws10
for_window [class="discord"] move container to workspace $ws10
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# bar {
# status_command i3status
# }
bar {
status_command goblocks
font pango:Fira Mono Medium, 12
position bottom
mode dock
workspace_buttons yes
tray_output primary
colors {
background #000000
statusline #f08000
focused_workspace #a0a0a0 #333333 #f08000
active_workspace #000000 #000000
inactive_workspace #a0a0a0 #000000
urgent_workspace #000000 #f08000
}
}
##########
# Modifier key
set $mod Mod4
# Reload the configuration file
bindsym $mod+Shift+c reload
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# kill focused window
bindsym $mod+Shift+q kill
# change focus
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+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split orientation ([h]orizontal/[v]ertical)
bindsym $mod+h split h
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# container layout
bindsym $mod+Mod2+KP_1 layout toggle split
bindsym $mod+Mod2+KP_2 layout tabbed
# toggle tiling / floating
bindsym $mod+space floating toggle
# focus the parent container
bindsym $mod+p focus parent
# focus the child container
#bindsym $mod+d focus child
# Resizing windows
# Horizontally (KP_LEFT = shrink || KP_RIGHT = grow)
# KP_LEFT
bindcode $mod+83 resize shrink width 10px
bindcode $mod+Shift+83 resize shrink width 50
# KP_RIGHT
bindcode $mod+85 resize grow width 10px
bindcode $mod+Shift+85 resize grow width 50
# Vertically (KP_DOWN = shrink || KP_UP = grow)
# KP_DOWN
bindcode $mod+88 resize shrink height 10px
bindcode $mod+Shift+88 resize shrink height 50
# KP_UP
bindcode $mod+80 resize grow height 10px
bindcode $mod+Shift+80 resize grow height 50
# Lock the screen
bindsym $mod+l exec --no-startup-id fish -c lock
# Create Log out, Reboot, Poweroff bindings
set $PAmode "Power actions: [Mod] + [L]ogout, [R]eboot, [P]oweroff"
mode $PAmode {
bindsym $mod+l exec i3-msg exit, mode "default"
bindsym $mod+r exec systemctl reboot, mode "default"
bindsym $mod+p exec systemctl poweroff, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+e mode $PAmode
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# Use ponymix to adjust volume in Alsa.
bindsym XF86AudioRaiseVolume exec --no-startup-id chvol inc 2
bindsym XF86AudioLowerVolume exec --no-startup-id chvol dec 2
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id chvol inc 10
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id chvol dec 10
bindsym XF86AudioMute exec --no-startup-id chvol toggle
# Use brightnessctl to adjust laptop's backlight
bindsym XF86MonBrightnessUp exec --no-startup-id chbrightness set 5%+
bindsym XF86MonBrightnessDown exec --no-startup-id chbrightness set 5%-
bindsym Shift+XF86MonBrightnessUp exec --no-startup-id chbrightness set 20%+
bindsym Shift+XF86MonBrightnessDown exec --no-startup-id chbrightness set 20%-
# Windows settings
# Tiled pop-ups are annoying
no_focus [window_role="pop-up"]
for_window [window_role="pop-up"] floating enable
# -- Microsoft Teams (notifications are windows)
no_focus [title="Microsoft Teams Notification"]
for_window [title="Microsoft Teams Notification"] floating enable
# -- Tixati (splash screen)
no_focus [title="Loading Tixati..."]
for_window [title="Loading Tixati..."] floating enable
# System settings
for_window [class="Lxappearance"] floating enable
for_window [class="Xinput-gui"] floating enable
for_window [class="Nm-connection-editor"] floating enable
for_window [class="System-config-printer.py"] floating enable
# Utilities
for_window [class="Pdf2png"] floating enable
# JetBrains Toolbox
for_window [class="jetbrains-toolbox"] floating enable
for_window [class="jetbrains-toolbox"] border pixel 5
# Clion splash screen
for_window [class="java-lang-Thread" title="win0"] floating enable
for_window [class="java-lang-Thread" title="win0"] border none
no_focus [class="java-lang-Thread" title="win0"]
# Flameshot settings
for_window [class="flameshot"] floating enable
# CSFML projects
for_window [title="Duck Hunt"] floating enable
for_window [title="My Defender"] floating enable
# Autostart
# Numlock ON at startup
exec --no-startup-id numlockx on
# Notification daemon
exec --no-startup-id dunst
# Screen locker
exec --no-startup-id xss-lock --transfer-sleep-lock -- fish -c lock
# Disk automounter
exec --no-startup-id udiskie -sa
# Mail client
exec --no-startup-id birdtray
# Screenshot tool
exec --no-startup-id flameshot
# Auto hide mouse after 3 seconds
exec --no-startup-id mousetrap -t 3
# Start a terminal
exec --no-startup-id i3-sensible-terminal
# Blue light fliter
exec --no-startup-id xflux -l 48.616280 -g 1.671550 -r 1
# App shortcuts
# Update everything
bindsym $mod+Shift+u exec i3-sensible-terminal --title='General update script' fish '-c update-all'
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# Rofi (scripts are in ~/.local/bin)
# App launcher
bindsym $mod+Ctrl+Return exec rofi -show drun
# Window cycler
bindsym $mod+Tab exec rofi -modi window -show window -width 50
# Screenshot tool
bindsym Print exec flameshot gui
# Web browser
bindsym $mod+Ctrl+v exec vivaldi-stable, exec --no-startup-id i3-msg workspace $ws2
# Caprine (desktop Messenger)
bindsym $mod+Ctrl+c exec caprine, exec --no-startup-id i3-msg workspace $ws10
# Discord
bindsym $mod+Ctrl+d exec discord, exec --no-startup-id i3-msg workspace $ws10
# Mail Client
bindsym $mod+Ctrl+m exec thunderbird, exec --no-startup-id i3-msg workspace $ws9