-
Notifications
You must be signed in to change notification settings - Fork 6
/
config
228 lines (176 loc) · 7.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
set $mod Mod4
set $term alacritty
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:TerminessTTF Nerd Font 10
# focus not follow mouse
focus_follows_mouse no
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec $term
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec appsmenu
bindsym $mod+shift+v exec clipmenu
focus_wrapping no
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+Tab exec "i3-focus-last --switch"
# 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+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+b split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+m move workspace to output left
bindsym $mod+Shift+m exec i3-output-swap
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
bindsym $mod+c focus child
# next/prev workspace
bindsym $mod+n workspace next
bindsym $mod+p workspace prev
bindsym $mod+x [urgent=latest] focus
# 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
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# 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 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
# same bindings, but for the arrow 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
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
bindsym --whole-window --border $mod+button4 exec transset-df --inc -p 0.1
bindsym --whole-window --border $mod+button5 exec transset-df --dec -p 0.1 -m 0.2
bindsym --whole-window --border $mod+shift+button4 gaps inner current minus 5
bindsym --whole-window --border $mod+shift+button5 gaps inner current plus 5
default_border pixel 2
smart_borders on
# i3 scripts
exec_always --no-startup-id bash -c "ps -ef | grep -E '[p]ython3 .*i3-focus-last' | tr -s ' ' | cut -d ' ' -f2 | xargs kill; i3-focus-last"
exec_always --no-startup-id i3-rename-workspace
bindsym $mod+Shift+z sticky toggle
# LastPass key
# bindsym Mod1+shift+bar exec lpass-rofi
bindsym Mod1+shift+bar exec rofi -modi 1pass:op-rofi -show 1pass
# Screen Shots
bindsym --release Print exec --no-startup-id flameshot gui
# Brightness controls
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
# Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q sset Master 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q sset Master 5%-
bindsym XF86AudioMute exec --no-startup-id amixer -q sset Master toggle
bindcode 179 exec --no-startup-id amixer -q sset Master 5%+
bindcode 148 exec --no-startup-id amixer -q sset Master 5%-
bindcode 163 exec --no-startup-id amixer -q sset Master toggle
# Media player controls
bindsym XF86AudioPause exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym F6 exec playerctl play-pause
# Make Authy a floating window
for_window [title="^Authy$"] floating enable
for_window [instance="origin.exe"] floating enable
bindsym $mod+Delete exec powermenu
bindsym $mod+shift+Delete exec playerctl pause ; exec lock-session
bindsym $mod+Insert exec systemctl start --user wal.service
mode "" {
bindsym Menu mode "default"
}
bindsym Menu mode ""
exec configure-touchpad
exec_always --no-startup-id "~/.config/i3/startup.sh"
exec --no-startup-id greenclip daemon
exec --no-startup-id udiskie
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
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
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused $color5 $color13 $color0 $color13 $color12
client.focused_inactive $color1 $color2 $color5 $color3 $color1
client.unfocused $color0 $color0 $color5 $color0 $color0
client.urgent $color8 $color8 $color0 $color8 $color8
client.placeholder $color0 $color0 $color5 $color0 $color0
client.background $color7
title_align center
assign [class="zoom"] workspace number 4
for_window [window_role="About"] floating enable