14
14
# ----------------------------------------------------------------------------
15
15
16
16
set $mod Mod1
17
+ set $termDetached kitty
17
18
set $term kitty --single-instance
18
19
20
+ # autolock timer in minutes
21
+ set $autolock 10
22
+ set $lockalert "notify-send -u critical -t 10000 -- 'Locking screen in 10 seconds'"
23
+
19
24
# workspaces
20
25
set $W1 "1: Term"
21
26
set $W2 "2: Work"
@@ -32,8 +37,8 @@ set $W10 "10"
32
37
set $SCREEN1 eDP0
33
38
set $SCREEN2 HDMI1
34
39
35
- new_window pixel 1
36
- new_float pixel 4
40
+ new_window pixel 2
41
+ new_float pixel 3
37
42
hide_edge_borders smart
38
43
39
44
# Font for window titles. Will also be used by the bar unless a different font
@@ -201,9 +206,6 @@ mode "$mode_virtualbox" {
201
206
# $mod+Control shortcuts are use for system/i3 calls
202
207
# ----------------------------------------------------------------------------
203
208
204
- # Screen off
205
- #bindsym XF86Sleep exec "xset dpms force off"
206
-
207
209
set $Locker i3lock -c 000000
208
210
set $mode_system · [L]ock Log[o]ut [S]uspend [R]eboot [P]oweroff ·
209
211
@@ -225,6 +227,9 @@ mode "$mode_system" {
225
227
# we keep a quick lock binding
226
228
bindsym $mod+Control+l exec $Locker
227
229
230
+ # autolock
231
+ # exec xautolock -notify 10 -notifier "$lockalert" -time $autolock -locker $Locker
232
+
228
233
# ----------------------------------------------------------------------------
229
234
# Screensaver mode
230
235
# ----------------------------------------------------------------------------
@@ -287,23 +292,25 @@ bindsym XF86AudioPrev exec mpc prev
287
292
288
293
# start a terminal
289
294
bindsym $mod+Return exec $term
295
+ bindsym $mod+shift+Return exec $termDetached
290
296
291
297
# [m]utt
292
298
bindsym $mod+shift+m workspace $W3; exec $term --title "mutt" mutt
293
299
bindsym $mod+m exec i3-msg '[title="mutt"] focus'
294
300
bindsym XF86Mail exec i3-msg '[title="mutt"] focus'
295
301
296
- # Qutebrowser ([www]/ [b]rowse )
297
- bindsym $mod+shift+w exec qutebrowser
302
+ # Qutebrowser ([o] for the shape of the earth de [b]ug )
303
+ bindsym $mod+shift+o exec qutebrowser
298
304
# for dev
299
305
bindsym $mod+shift+b exec qutebrowser --enable-webengine-inspector --loglevel vdebug
300
306
301
- bindsym $mod+w [class="qutebrowser"] focus
307
+ bindsym $mod+o [class="qutebrowser"] focus
302
308
bindcode 180 [class="qutebrowser"] focus
303
309
304
- # ncmpcpp ([J]ukebox)
305
- bindsym $mod+shift+j workspace $w6; exec $term sh -c "i3-msg mark ncmpcpp && ncmpcpp"
306
- bindsym $mod+j exec i3-msg '[con_mark="ncmpcpp"] focus'
310
+ # ncmpcpp ([l]ecteur)
311
+ # you can move to a more logical key for you langage, like [J]ukebox
312
+ bindsym $mod+shift+l workspace $w6; exec $termDetached -o font_size=10 sh -c "i3-msg mark ncmpcpp && ncmpcpp"
313
+ bindsym $mod+l exec i3-msg '[con_mark="ncmpcpp"] focus'
307
314
308
315
# ranger ([F]iles
309
316
bindsym $mod+shift+f exec $term --title "ranger" ranger
@@ -352,7 +359,7 @@ client.placeholder $bg $bg $bg $bg
352
359
bar {
353
360
position bottom
354
361
strip_workspace_numbers yes
355
- font pango:DejaVu Sans Mono, FontAwesome 8
362
+ font pango:DejaVu Sans Mono, FontAwesome 7
356
363
separator_symbol "⋆"
357
364
358
365
status_command i3status --config ~/.config/i3/i3status.conf
@@ -368,5 +375,3 @@ bar {
368
375
urgent_workspace $ac $bg $hi
369
376
}
370
377
}
371
-
372
-
0 commit comments