-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig
375 lines (279 loc) · 10.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
# ░█▀▀░█░█░█▀█░█░█
# ░▀▀█░█▄█░█▀█░░█░
# ░▀▀▀░▀░▀░▀░▀░░▀░
#----------------
#-- Variables: --
#----------------
# Font:
font pango: Ubuntu 10
# Logo key. Use Mod1 for Alt:
set $mod Mod4
# Home row direction keys, like vim:
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator:
set $term foot
# Your preferred application launcher:
set $menu wofi --show=drun --insensitive --width=25% --prompt=""
# Floating modifier:
floating_modifier $mod normal
# Include system sway variables:
include /etc/sway/config-vars.d/*
# Floating windows list:
for_window [class="feh"] floating enable
for_window [app_id="eog"] floating enable
for_window [app_id="gnome-calculator"] floating enable
for_window [app_id="Nautilus"] floating enable
for_window [app_id="wdisplays"] floating enable
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="bookmark"] floating enable
#-------------------
#-- Sway session: --
#-------------------
# Reload the configuration file:
bindsym $mod+Shift+c reload
# Exit sway:
bindsym $mod+Shift+e exec swaynag -t warning -m 'End Wayland session?' -b 'Yes.' 'swaymsg exit'
# Wofi as a power menu:
# bindsym $mod+Shift+q exec bash .local/bin//poweroffreboot
# Use wlogout as a session menu:
bindsym $mod+Shift+q exec wlogout
#--------------------
#-- Set wallpaper: --
#--------------------
output * bg #002b36 solid_color
#voutput * bg ~/Debstrap/sw.jpg fill
#----------------------
#-- Monitors Output: --
#----------------------
# output HDMI-A-1 resolution 1920x1080 position 1920,0
# You can get the names of your outputs by running: swaymsg -t get_outputs
# Mouse pointer moves to the newly-focused output:
mouse_warping output
#-------------------------
#-- Idle configuration: --
#-------------------------
# Launch swayidle after 5 minutes of inactivity:
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
#--------------------------
#-- Input configuration: --
#--------------------------
# Keyboard and mouse configurations:
input * {
xkb_options "caps:swapescape,, grp:win_space_toggle,, altwin:menu_win"
left_handed enabled
xkb_layout "us, latam"
xkb_variant "intl,"
repeat_delay 200
repeat_rate 100
accel_profile "adaptive"
pointer_accel 1.0
tap enabled
}
# Hide mouse cursor after a period of inactivity.
seat seat0 hide_cursor 3000
#-------------------
#-- Applications: --
#-------------------
# Start a terminal:
bindsym $mod+Return exec $term
# Kill focused window:
bindsym $mod+q kill
# Start your launcher:
bindsym $mod+d exec $menu
# Launch file manager:
bindsym $mod+n exec nautilus -w
# Lock screen:
bindsym $mod+Shift+x exec swaylock -f -c 000000
# Launch web browser:
bindsym $mod+i exec firefox
#Launch Blender:
bindsym $mod+g exec /home/argos/blender-git/build_linux/bin/blender
# Screenshooting:
bindsym $mod+Print exec grimshot --notify save active
bindsym Shift+Print exec grimshot --notify save area
bindsym Print exec grimshot --notify save output
bindsym Ctrl+Print exec grimshot --notify save window
# Window selector:
bindsym $mod+Tab exec ~/.local/bin/window_selector.sh
#Fuzzy find bookmarks
bindsym $mod+u exec $term -a=bookmark sh .local/bin/fuzzybook.sh
# Vimwiki
bindsym $mod+Shift+w exec $term -a=wiki nvim Desktop/vimwiki/index.md
#--------------------
#-- Moving around: --
#--------------------
# Move your focus around:
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift:
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
# Swap focused window with any window in a given direction:
bindsym $mod+Alt+$left mark --add "_swap", focus left, swap container with mark "_swap", focus left, unmark "_swap"
bindsym $mod+Alt+$down mark --add "_swap", focus down, swap container with mark "_swap", focus down, unmark "_swap"
bindsym $mod+Alt+$up mark --add "_swap", focus up, swap container with mark "_swap", focus up, unmark "_swap"
bindsym $mod+Alt+$right mark --add "_swap", focus right, swap container with mark "_swap", focus right, unmark "_swap"
# Ditto, with arrow keys:
bindsym $mod+Alt+Left mark --add "_swap", focus left, swap container with mark "_swap", focus left, unmark "_swap"
bindsym $mod+Alt+Down mark --add "_swap", focus down, swap container with mark "_swap", focus down, unmark "_swap"
bindsym $mod+Alt+Up mark --add "_swap", focus up, swap container with mark "_swap", focus up, unmark "_swap"
bindsym $mod+Alt+Right mark --add "_swap", focus right, swap container with mark "_swap", focus right, unmark "_swap"
#-----------------
#-- Workspaces: --
#-----------------
# Move to the next or previous workspace:
bindsym $mod+Next workspace next_on_output
bindsym $mod+Prior workspace prev_on_output
# Move focused container to the next or previous existing workspace:
bindsym $mod+Shift+Next move container to workspace next_on_output
bindsym $mod+Shift+Prior move container to workspace prev_on_output
# Switch to workspace:
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
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
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
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
#-------------------
#-- Layout stuff: --
#-------------------
# Window tiling orientation:
bindsym $mod+b splith
bindsym $mod+v splitv
# Layout styles:
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen:
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode:
bindsym $mod+Escape floating toggle
# Swap focus between the tiling area and the floating area:
bindsym Alt+Tab focus mode_toggle
# Move focus to the parent container:
bindsym $mod+a focus parent
#-----------------
#-- Scratchpad: --
#-----------------
# Move the currently focused window to the scratchpad:
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window:
bindsym $mod+minus scratchpad show
#--------------------------
#-- Resizing containers: --
#--------------------------
# Resize mode keybindings:
mode "resize" {
bindsym $left resize shrink width 50px
bindsym $down resize grow height 50px
bindsym $up resize shrink height 50px
bindsym $right resize grow width 50px
# Ditto, with arrow keys:
bindsym Left resize shrink width 50px
bindsym Down resize grow height 50px
bindsym Up resize shrink height 50px
bindsym Right resize grow width 50px
# Return to default mode:
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Enter resize mode:
bindsym $mod+r mode "resize"
#------------
#-- Panel: --
#------------
# Waybar:
bar {
swaybar_command waybar
}
include /etc/sway/config.d/*
# Hide/unhide waybar:
bindsym $mod+x exec killall -SIGUSR1 waybar
#------------
#-- Audio: --
#------------
# Audio keybindings:
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
#------------------------
#-- Screen brightness: --
#------------------------
# Adjust brightness control:
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
# Set screen brightness to 5% on start up:
exec brightnessctl set 5%
# Set screen color temperature:
exec gammastep -l 9.83333:-83.75
#-------------------------------------------------
#-- Launch mako notification daemon on startup: --
#-------------------------------------------------
# Run mako on startup:
exec mako
#---------------------------
#-- Graphical appearance: --
#---------------------------
# Gaps' default size & behavior:
gaps inner 7
smart_gaps on
# Gaps' size modifiers:
bindsym $mod+plus gaps inner current plus 7
bindsym $mod+Shift+plus gaps inner current minus 7
bindsym $mod+o gaps inner current set 0
# Borders:
default_border pixel 3
smart_borders on
default_floating_border normal 3
# Toggle border style:
bindsym $mod+Shift+b exec swaymsg border toggle
# Colors:
set $ac #839496
set $uf #888888
set $fg #283337
set $bg #383838
set $ub #f2777a
set $bar #4B4B4B
set $ta #FFFFFF
# Window Border color: border: backgr: text: indicator:
client.focused $ta $ac $ta $ac
client.focused_inactive $uf $bg $uf $ac
client.unfocused $uf $bg $uf $ac
client.urgent $uf $ub $fg $ac