-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
256 lines (220 loc) · 8.5 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
# i3 config file (v4)
# References:
# - https://i3wm.org/docs/userguide.html
# Startup script (an executable named "startup" must exist)
exec --no-startup-id exec startup
exec_always --no-startup-id exec eachstart
# Set Windows key as the main mod key
set $mod Mod4
# Set terminal
set $term i3-sensible-terminal
# Set file explorer
set $explorer xdg-open "$HOME"
# Main font
font pango:Hack 10
# Gaps
gaps outer 11
gaps top 0
gaps bottom 34
gaps inner 11
# Windows style
default_border pixel 1
### BINDINGS ###
# bindsym $mod+m exec systemctl suspend
bindsym $mod+Delete exec dm-tool switch-to-greeter
# start a terminal
bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec cd "$(xcwd)"; exec $term
bindsym $mod+Shift+p exec "turbopaste"
bindsym $mod+p exec $term -e htop
bindsym $mod+b exec "firefox --new-window || flatpak run org.mozilla.firefox"
bindsym Mod1+Tab exec rofi -show window
bindsym $mod+space exec rofi -show drun
bindsym $mod+o exec open-clipboard
bindsym $mod+Shift+v exec up-last-screen
bindsym $mod+colon exec langswitcher
bindsym $mod+period exec langswitcher
bindsym $mod+semicolon exec rofimoji -s neutral -p --rofi-args="-config ~/.config/rofi/config-emoji.rasi"
# screenshots
bindsym Print exec screenshot
bindsym $mod+Print exec maim -s -u | xclip -selection clipboard -t image/png && xclip -selection clipboard -o > "$HOME/Pictures/Screenshots/$(date +'%F-%H%M%S')_maim.png"
bindsym --release Control+Print exec screenshot area
# kill focused window
# bindsym $mod+Shift+a kill
bindsym Mod1+F4 kill
# start dmenu
bindsym $mod+d exec dmenu_run
bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop
# start file explorer
bindsym $mod+e exec $explorer
bindsym $mod+Shift+e exec xdg-open "$(xcwd)"
bindsym XF86AudioLowerVolume exec volume decrease
bindsym XF86AudioRaiseVolume exec volume increase
bindsym XF86AudioMute exec volume toggle
bindsym XF86MonBrightnessDown exec light -U '5%'
bindsym XF86MonBrightnessUp exec light -A '5%'
# change focus
# bindsym $mod+h focus left
# bindsym $mod+j focus down
# bindsym $mod+k focus up
# bindsym $mod+l focus right
# move focused window
# bindsym $mod+Shift+h move left
# bindsym $mod+Shift+j move down
# bindsym $mod+Shift+k move up
# bindsym $mod+Shift+l move 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
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# toggle splitting orientation
bindsym $mod+v split toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+t layout tabbed
bindsym $mod+s layout toggle split
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
# bindsym $mod+space focus mode_toggle
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
bindsym $mod+Shift+a focus child
# 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"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# 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
bindsym $mod+ampersand workspace 1
bindsym $mod+eacute workspace 2
bindsym $mod+quotedbl workspace 3
bindsym $mod+apostrophe workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+egrave workspace 6
bindsym $mod+minus workspace 7
bindsym $mod+underscore workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10
# move focused container to workspace
bindsym $mod+Shift+ampersand move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+eacute move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+quotedbl move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+apostrophe move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+parenleft move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+egrave move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+minus move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+underscore move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+ccedilla move container to workspace $ws9; workspace $ws9
bindsym $mod+Shift+agrave move container to workspace $ws10; workspace $ws10
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
# reload the configuration file
bindsym $mod+Shift+i 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'"
# Prefer using launcher for exiting session / restarting computer / turning off computer / etc
# resize window (you can also use the mouse for that)
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym Shift+h resize shrink width 1 px or 1 ppt
bindsym Shift+j resize grow height 1 px or 1 ppt
bindsym Shift+k resize shrink height 1 px or 1 ppt
bindsym Shift+l resize grow width 1 px or 1 ppt
# alternatively, you can use the cursor keys:
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym Shift+Left resize shrink width 1 px or 1 ppt
bindsym Shift+Down resize grow height 1 px or 1 ppt
bindsym Shift+Up resize shrink height 1 px or 1 ppt
bindsym Shift+Right resize grow width 1 px or 1 ppt
# back to normal
bindsym Escape mode "default"
bindsym Return mode "default"
bindsym Caps_Lock mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# resize gaps
mode "gaps" {
bindsym h gaps inner all minus 10
bindsym j gaps outer all minus 10
bindsym k gaps outer all plus 10
bindsym l gaps inner all plus 10
bindsym Shift+h gaps inner all minus 1
bindsym Shift+j gaps outer all minus 1
bindsym Shift+k gaps outer all plus 1
bindsym Shift+l gaps inner all plus 1
# alternatively, you can use the cursor keys:
bindsym Left gaps inner all minus 10
bindsym Down gaps outer all minus 10
bindsym Up gaps outer all plus 10
bindsym Right gaps inner all plus 10
bindsym Shift+Left gaps inner all minus 1
bindsym Shift+Down gaps outer all minus 1
bindsym Shift+Up gaps outer all plus 1
bindsym Shift+Right gaps inner all plus 1
# back to normal
bindsym Escape mode "default"
bindsym Return mode "default"
bindsym Caps_Lock mode "default"
bindsym $mod+g mode "default"
}
bindsym $mod+g mode "gaps"
# Toggle hiding bar
bindsym $mod+Shift+b bar mode toggle
# Float overwrites
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_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_type="notification"] floating enable
for_window [class="bms.player.beatoraja.MainLoader"] floating enable
no_focus [class="Discord"]
# bar {
# tray_output none
# status_command i3status
# }