-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
435 lines (359 loc) · 14.1 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
#i3 config file (v4) root
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
# $modkey for ALT and Mod4 for Winkey
set $modkey Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango: Iosevka bold 30
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:DaddyTimeMono 8
exec setxkbmap es
#exec pulseaudio
# Before i3 v4.8, we used to recommend this one as the default:
# 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, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn't scale on retina/hidpi displays.
# Desktop background
#exec_always --no-startup-id wal -i ~/usr/share/blackarch/wallpaper.jpg
exec_always --no-startup-id feh --bg-scale /home/chinito/Imagenes/fondo-pantalla/fondo1
# use these keys for focus, movement, and resize directions when reaching for
# the arrows is not convenient
set $up l
set $down k
set $left j
set $right semicolon
# use Mouse+$modkey to drag floating windows to their wanted position
floating_modifier $modkey
# start a htop gotop cava ranger
bindsym $modkey+Shift+t exec htop
bindsym $modkey+g exec gotop
bindsym $modkey+c exec cava
bindsym $modkey+p exec ranger
# start a terminal
# start a terminal
# start a web
bindsym XF86HomePage exec sidekick-browser-stable
# start a terminal
bindsym $modkey+Return exec --no-startup-id i3-sensible-terminal
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
#Captura de pantalla Pantalla
bindsym --release Shift+Print exec scrot -s -f Imagenes/captura-pantalla/recortadas/
bindsym --release Print exec scrot -f Imagenes/captura-pantalla/completas/
# Kill
bindsym $modkey+BackSpace kill
# start dmenu (a program launcher)
bindsym XF86Favorites exec --no-startup-id rofi -show run
# bindsym $modkey+d exec --no-startup-id dmenu_run
bindsym XF86Explorer exec --no-startup-id dmenu_run
# 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 $modkey+d exec --no-startup-id --no-startup-id i3-dmenu-desktop
# change focus
bindsym $modkey+$left focus left
bindsym $modkey+$down focus down
bindsym $modkey+$up focus up
bindsym $modkey+$right focus right
# alternatively, you can use the cursor keys:
bindsym $modkey+Left focus left
bindsym $modkey+Down focus down
bindsym $modkey+Up focus up
bindsym $modkey+Right focus right
# move focused window
bindsym $modkey+Shift+$left move left
bindsym $modkey+Shift+$down move down
bindsym $modkey+Shift+$up move up
bindsym $modkey+Shift+$right move right
# alternatively, you can use the cursor keys:
bindsym $modkey+Shift+Left move left
bindsym $modkey+Shift+Down move down
bindsym $modkey+Shift+Up move up
bindsym $modkey+Shift+Right move right
# split in horizontal orientation
bindsym $modkey+KP_Add split h
# split in vertical orientation
bindsym $modkey+KP_Subtract split v
# enter fullscreen mode for the focused container
bindsym $modkey+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $modkey+s layout stacking
bindsym $modkey+w layout tabbed
bindsym $modkey+e layout toggle split
# toggle tiling / floating
bindsym $modkey+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $modkey+space focus mode_toggle
# focus the parent container
bindsym $modkey+a focus parent
# focus the child container
#bindsym $modkey+d focus child
# move the currently focused window to the scratchpad
bindsym $modkey+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $modkey+minus scratchpad show
# Enable the setion below to fetch all the colors from Xresources
#set_from_resource $xforeground foreground
#set_from_resource $xbackground background
#set_from_resource $xcursor cursorColor
#set_from_resource $xcolor0 color0
#set_from_resource $xcolor8 color8
#set_from_resource $xcolor1 color1
#set_from_resource $xcolor9 color9
#set_from_resource $xcolor2 color2
#set_from_resource $xcolor10 color10
#set_from_resource $xcolor3 color3
#set_from_resource $xcolor11 color11
#set_from_resource $xcolor4 color4
#set_from_resource $xcolor12 color12
#set_from_resource $xcolor5 color5
#set_from_resource $xcolor13 color13
#set_from_resource $xcolor6 color6
#set_from_resource $xcolor14 color14
#set_from_resource $xcolor7 color7
#set_from_resource $xcolor15 color15
# Manual color settings.
# red theme
#set $xforeground #c5c8c6
#set $xbackground #1d1f21
#set $xcursor #c5c8c6
#set $xcolor0 #282a2e
#set $xcolor8 #373b41
#set $xcolor1 #a54242
#set $xcolor9 #cc6666
#set $xcolor2 #8c9440
#set $xcolor10 #b5bd68
#set $xcolor3 #de935f
#set $xcolor11 #f0c674
#set $xcolor4 #5f819d
#set $xcolor12 #81a2be
#set $xcolor5 #85678
#set $xcolor13 #b294bb
#set $xcolor6 #5e8d87
#set $xcolor14 #8abeb7
#set $xcolor7 #707880
#set $xcolor15 #c5c8c6
# blue theme
set $xforeground #c5c8c6
set $xbackground #00073F
set $xcursor #c5c8c6
set $xcolor0 #0D3264
set $xcolor8 #373b41
set $xcolor1 #DA2929
set $xcolor9 #cc6666
set $xcolor2 #8c9440
set $xcolor10 #b5bd68
set $xcolor3 #de935f
set $xcolor11 #f0c674
set $xcolor4 #5f819d
set $xcolor12 #81a2be
set $xcolor5 #85678f
set $xcolor13 #b294bb
set $xcolor6 #5e8d87
set $xcolor14 #8abeb7
set $xcolor7 #707880
set $xcolor15 #c5c8c6
# Colors
# Class border backgr text indic
client.focused $xcolor6 $xcolor1 $xbackground $xcolor7
client.focused_inactive $xcolor6 $xcolor0 $xcolor14
client.unfocused $xcolor6 $xcolor0 $xcolor14
client.urgent $xbackground $xcolor9 $xbackground
client.placeholder $xcolor7 $xcolor7 $xcolor14
# 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 "1:1"
set $ws2 "2:2"
set $ws3 "3:3"
set $ws4 "4:4"
set $ws5 "5:5"
set $ws6 "6:6"
set $ws7 "7:7"
set $ws8 "8:8"
set $ws9 "9:9"
set $ws0 "0:0"
# set $ws10 "10:10"
# switch to workspace
bindsym $modkey+1 workspace $ws1
bindsym $modkey+2 workspace $ws2
bindsym $modkey+3 workspace $ws3
bindsym $modkey+4 workspace $ws4
bindsym $modkey+5 workspace $ws5
bindsym $modkey+6 workspace $ws6
bindsym $modkey+7 workspace $ws7
bindsym $modkey+8 workspace $ws8
bindsym $modkey+9 workspace $ws9
bindsym $modkey+0 workspace $ws0
# bindsym KP_End+KP_Insert workspace $ws10
#
#
#
#
#
# move focused container to workspace
# bindsym $modkey+Shift+0 move container to workspace $ws0
bindsym $modkey+Shift+1 move container to workspace $ws1
bindsym $modkey+Shift+2 move container to workspace $ws2
bindsym $modkey+Shift+3 move container to workspace $ws3
bindsym $modkey+Shift+4 move container to workspace $ws4
bindsym $modkey+Shift+5 move container to workspace $ws5
bindsym $modkey+Shift+6 move container to workspace $ws6
bindsym $modkey+Shift+7 move container to workspace $ws7
bindsym $modkey+Shift+8 move container to workspace $ws8
bindsym $modkey+Shift+9 move container to workspace $ws9
bindsym $modkey+Shift+0 move container to workspace $ws0
# reload the configuration file
bindsym $modkey+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym XF86Reload restart
# exit i3 (logs you out of your X session) | Changes was made here.
#bindsym $modkey+Shift+e exec --no-startup-id "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 $left resize shrink width 12 px or 12 ppt
bindsym $down resize grow height 12 px or 12 ppt
bindsym $up resize shrink height 12 px or 12 ppt
bindsym $right resize grow width 12 px or 12 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 12 px or 12 ppt
bindsym Down resize grow height 12 px or 12 ppt
bindsym Up resize shrink height 12 px or 12 ppt
bindsym Right resize grow width 12 px or 12 ppt
bindsym $modkey+$left resize shrink width 01 px or 01 ppt
bindsym $modkey+$down resize grow height 01 px or 01 ppt
bindsym $modkey+$up resize shrink height 01 px or 01 ppt
bindsym $modkey+$right resize grow width 01 px or 01 ppt
bindsym $modkey+Left resize shrink width 01 px or 01 ppt
bindsym $modkey+Down resize grow height 01 px or 01 ppt
bindsym $modkey+Up resize shrink height 01 px or 01 ppt
bindsym $modkey+Right resize grow width 01 px or 01 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $modkey+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# bar {
# status_command i3status
# mode dock
# height 16
# position top
#strip_workspace_numbers yes
#font pango: Exo2-VariableFont_wght 10
#separator_symbol " "
#colors {
#Where #Color
# background $xbackground
# statusline $xforeground
#
# #Where #Border #Background #Text
# focused_workspace $xbackground $xcolor1 $xforeground
# #urgent_workspace $xbackground $xcolor9 $xbackground
# urgent_workspace $xbackground $xcolor1 $xbackground
# inactive_workspace $xbackground $xcolor0 $xforeground
#}
# }
bar {
font pango:Inconsolata 10
position top
tray_output none
status_command ~/.config/bumblebee-status/bumblebee-status -m \
ping cpu memory date time \
-p root.path=/ time.format="%H:%M CW %V" date.format="%a, %b %d %Y" \
-t solarized-powerline
}
# Toggle bar
bindsym $modkey+m bar mode toggle
# Back and forth when pressing the same workspace keybind
workspace_auto_back_and_forth yes
# Display urgent notification on windows
force_display_urgency_hint 500 ms
# Locker configuration
set $Locker i3lock -d -c $black0 -f
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (Bloq Despl) reboot, (Pausa Inter) poweroff , (Shift+s) shutdown, (b) off-screen
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym XF86Reload exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
bindsym Scroll_Lock exec --no-startup-id systemctl reboot, mode "default"
bindsym Pause exec --no-startup-id systemctl poweroff, mode "default"
bindsym b exec --no-startup-id sleep 1 && xset dpms force off, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym Pause mode "$mode_system"
# Misc (above)
#new_window pixel 2
# Floating dialogs
for_window [class="^.*"] border pixel 2
# Floating dialogs
#for_window [window_role="pop-up"] floating enable
#for_window [window_role="task_dialog"] floating enable
# i3-gaps configuration
gaps inner 5
gaps outer 0
smart_gaps on
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $modkey+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
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"
}
######################################################################
# automatically start i3-config-wizard to offer the user to create a
# keysym-based config which used their favorite modifier (alt or windows)
#
# i3-config-wizard will not launch if there already is a config file
# in ~/.i3/config.
#
# Please remove the following exec line:
#######################################################################
exec --no-startup-id i3-config-wizard