-
Notifications
You must be signed in to change notification settings - Fork 0
/
i3config
292 lines (228 loc) · 8.75 KB
/
i3config
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
# Init
#
set $mod Mod4
floating_modifier $mod
focus_on_window_activation urgent
set_from_resource $font font
set_from_resource $barheight i3bar.height
font pango:Monoid Nerd Font 8
# font pango: $font
#Color Scheme
set_from_resource $background background
set_from_resource $foreground foreground
set_from_resource $color0 color0
set_from_resource $color1 color1
set_from_resource $color2 color2
set_from_resource $color3 color3
set_from_resource $color4 color4
set_from_resource $color5 color5
set_from_resource $color6 color6
set_from_resource $color7 color7
set_from_resource $color8 color8
set_from_resource $color9 color9
set_from_resource $color10 color10
set_from_resource $color11 color11
set_from_resource $color12 color12
set_from_resource $color13 color13
set_from_resource $color14 color14
set_from_resource $color15 color15
# Workspaces and Assignments
set $workspace1 "1:"
# Git"
set $workspace2 "2:"
# Web"
set $workspace3 "3:"
# term"
set $workspace4 "4:"
# Ide"
set $workspace5 "5:"
# chat"
set $workspace6 "6:"
# random"
set $workspace7 "7:"
# File"
set $workspace8 "8:8"
# 8"
set $workspace9 "9:9"
# 9"
set $workspace10 "10:10"
# 10"
assign [instance="dwb|Navigator|midori|Uzbl-tabbed"] $workspace2
assign [class="Vivaldi-stable"] $workspace2
for_window [class="Midori"] floating enable
for_window [title="Browser"] floating enable
for_window [title="Preferences"] floating enable
for_window [class="Lxappearance"] floating enable
for_window [title="Xfce-notifyd"] floating enable
assign [class="Thunar"] $workspace6
assign [class="jetbrains-idea"] $workspace4
assign [class="jetbrains-webstorm"] $workspace4
assign [class="Google-chrome"] $workspace2
assign [class="Slack"] $workspace5
assign [class="Spotify"] $workspace5
assign [class="GitKraken"] $workspace1
assign [class="TelegramDesktop"] $workspace1
assign [class="notion-nativefier"] $workspace1
# HIDE EDGE BORDERS
#hide_edge_borders <none|vertical|horizontal|both>
hide_edge_borders both
# font for window titles. ISO 10646 = Unicode
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# Start a terminal
bindsym $mod+Return exec alacritty
# obindsym $mod+p exec rofi -show run -terminal alacritty -lines 5 -eh 3 -width 100 -padding 285 -opacity 80 -bw 0 -font "Monoid Nerd Font 11"
# App executor
bindsym $mod+p exec .config/rofi/launcher/launcher.sh
#bindsym $mod+p exec rofi -no-config -no-lazy-grab -show drun -modi drun -font "Monoid Nerd Font 11"
# Look for open windows
bindsym $mod+o exec .config/rofi/launcher/windows.sh
#bindsym $mod+o exec rofi -show window -lines 10 -xoffset 0 -width 60
# Emoji finder
bindsym $mod+shift+e exec .config/rofi/launcher/emoji.sh
#bindsym $mod+shift+e exec rofi -show emoji -modi emoji
# Shortcut finder
bindsym $mod+h exec .config/rofi/launcher/i3-keybindings.sh
# Layout easy switcher
bindsym $mod+u exec .config/rofi/launcher/i3-layout.sh
# Work log appender
bindsym $mod+i exec .config/rofi/launcher/vaultInserter.sh
# Lock screen
bindsym $mod+L exec ~/scripts/lock.sh
# Screenshoot
bindsym $mod+s exec flameshot gui
# Move focus right
bindsym $mod+Tab focus right
# Move focus left
bindsym $mod+Tab+Shift focus left
# allow focus wraping
force_focus_wrapping no
# Move focus left
bindsym $mod+Left focus left
# Move focus down
bindsym $mod+Down focus down
# Move focus up
bindsym $mod+Up focus up
# Move focus right
bindsym $mod+Right focus right
# audio with media keys + spofify
bindsym XF86AudioPlay exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
bindsym XF86AudioPrev exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
bindsym XF86AudioNext exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
# move to monitor
bindsym $mod+Shift+Left move workspace to output left
bindsym $mod+Shift+Right move workspace to output right
bindsym $mod+Shift+Up move workspace to output up
bindsym $mod+Shift+Down move workspace to output down
# 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
# split in horizontal orientation
bindsym $mod+b split h
# split in vertical orientation
bindsym $mod+v split v
# kill focused window
bindsym $mod+q kill
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout (stacked, tabbed, default)
bindsym $mod+z layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout default
# Open to workspace
bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace $workspace4
bindsym $mod+5 workspace $workspace5
bindsym $mod+6 workspace $workspace6
bindsym $mod+7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+0 workspace $workspace10
# Move app to workspace
bindsym $mod+Shift+1 move container to workspace $workspace1 workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2; workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3; workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4; workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5; workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6; workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7; workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8; workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9; workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace10; workspace $workspace10
# 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 j resize shrink width 10 px or 10 ppt
# bindsym k resize grow height 10 px or 10 ppt
# bindsym l resize shrink height 10 px or 10 ppt
# bindsym m resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize shrink height 10 px or 10 ppt
bindsym Up resize grow height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym f floating toggle
bindsym m mode "move"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# move window (you can also use the mouse for that)
mode "move" {
# 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.
# same bindings, but for the arrow keys
bindsym Left move left
bindsym Down move down
bindsym Up move up
bindsym Right move right
bindsym f floating toggle
bindsym r mode "resize"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+m mode "move"
for_window [class="^.*"] border pixel 0
new_window 1pixel
#gaps inner all set 20
gaps inner 8
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# bindsym $mod+O exec ~/scripts/keyboard_switch.sh --toggle &
# Polkit agent for raised access
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# notification agent
exec --no-startup-id dunst
# Numlock
exec_always --no-startup-id numlockx on
# Background
exec --no-startup-id feh --bg-scale ~/.dotfiles/wall.jpg
# Auto lock
# exec --no-startup-id xautolock -time 10 -locker ~/scripts/lock.sh -secure
# Transparency
# exec --no-startup-id exec picom -cb --config .compton.conf
# Screenshot software
exec --no-startup-id flameshot
# Audio edit from tray
exec --no-startup-id pasystray
# jetbrain toolbox for ide
exec --no-startup-id jetbrains-toolbox --minimize --disable-seccomp-filter-sandbox
# polybars
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# load xressources
exec --no-startup-id xrdb ~/.Xresources
# Load up screens and windows
exec --no-startup-id exec $HOME/scripts/init_workspace.sh