-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
250 lines (183 loc) · 7.86 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
## Basics
# Use Windows key
set $mod Mod4
# Set font
font pango:Inconsolata Regular 10
# Restart
bindsym $mod+Shift+r restart
# Close focused window
bindsym $mod+q kill
## Startup
exec_always --no-startup-id ${HOME}/.config/polybar/launch.sh
exec --no-startup-id dropbox
exec --no-startup-id xfce4-clipman
exec --no-startup-id blueman-applet
exec --no-startup-id xpad -N
## Locking
exec --no-startup-id xset s off
exec --no-startup-id xset dpms 0 0 120
exec --no-startup-id light-locker --lock-after-screensaver=180 --lock-on-suspend
## Exit options
set $mode_system Choose: (l) Lock, (x) Logout, (r) Reboot, (Shift+s) Shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id light-locker-command -l, mode "default"
bindsym x exec --no-startup-id "i3-msg '[class=\\".*\\"] kill'; sleep 2; i3-msg exit", mode "default"
bindsym r exec --no-startup-id "i3-msg '[class=\\".*\\"] kill'; sleep 2; systemctl reboot", mode "default"
bindsym Shift+s exec --no-startup-id "i3-msg '[class=\\".*\\"] kill'; sleep 2; systemctl poweroff", mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+End mode "$mode_system"
bindsym $mod+Ctrl+End exec --no-startup-id light-locker-command -l
## Launcher
# Rofi to run desktop apps (Capslock)
bindcode 66 exec rofi -show drun
# Rofi to run terminal commands
bindcode Ctrl+66 exec rofi -terminal i3-sensible-terminal -show run -run-command "{terminal} --title {cmd} --hold -e {cmd}" -run-shell-command "{terminal} --title {cmd} --hold -e 'sudo {cmd}'"
# Clipboard
bindsym --release $mod+v exec --no-startup-id xfce4-popup-clipman
# Screenshot
bindsym --release Print exec --no-startup-id xfce4-screenshooter -r -c
bindsym --release Shift+Print exec xfce4-screenshooter -r -s ~/Screenshots
# Scratchpad
bindcode Shift+66 exec --no-startup-id xpad --toggle
for_window [class=xpad] floating enable
## Application shortcuts
# Terminal: Using script from https://github.com/belminf/personal_scripts
bindsym $mod+Return exec i3-sensible-terminal -e 'bash -i -c "tmux_group_attach"'
# Chromium
bindsym $mod+space exec gtk-launch personal-chromium
bindsym $mod+Ctrl+space exec gtk-launch incognito-chromium
bindsym $mod+Shift+space exec gtk-launch work-chromium
# Whatsapp
bindsym $mod+w exec gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default
# GPM
bindsym $mod+m exec gtk-launch chrome-lpcdfaekmigkmlegfhiljhipmhnhmffa-Default
# Calendar
bindsym $mod+c exec gtk-launch chrome-eahagendpjeagehfgdobhplebiikmpfo-Default
# Todoist
bindsym $mod+t exec gtk-launch chrome-fnnjlkpjpjeohmhhiahkjkhlnogeaaeb-Default
# Evernote
bindsym $mod+e exec gtk-launch chrome-lbfehkoinhhcknnbdgnnmjhiladcgbol-Default
# Standard Notes
bindsym $mod+n exec gtk-launch standardnotes-desktop.desktop
# Gmail
bindsym $mod+g exec gtk-launch chrome-pjkljhegncpnkpknbcohdijeoejaedia-Default
# Calculator
bindsym $mod+equal exec =
## Navigation
# Change focus
focus_follows_mouse yes
bindsym $mod+h focus left; exec --no-startup-id ~/.config/i3/move_mouse.sh
bindsym $mod+l focus right; exec --no-startup-id ~/.config/i3/move_mouse.sh
bindsym $mod+j focus down; exec --no-startup-id ~/.config/i3/move_mouse.sh
bindsym $mod+k focus up; exec --no-startup-id ~/.config/i3/move_mouse.sh
# Change focus with cursor keys
bindsym $mod+Left focus left; exec --no-startup-id ~/.config/i3/move_mouse.sh
bindsym $mod+Right focus right; exec --no-startup-id ~/.config/i3/move_mouse.sh
bindsym $mod+Down focus down; exec --no-startup-id ~/.config/i3/move_mouse.sh
bindsym $mod+Up focus up; exec --no-startup-id ~/.config/i3/move_mouse.sh
# Move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+l move right
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
# Move focused window with cursor keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
# Move workspace to another display
bindsym $mod+Mod1+Left move workspace to output left
bindsym $mod+Mod1+Right move workspace to output right
# Switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# Managing workspace in display
bindsym $mod+grave workspace next_on_output
bindsym $mod+Ctrl+grave exec --no-startup-id ${HOME}/.config/i3/create_workspace.sh
bindsym $mod+Shift+grave exec --no-startup-id ${HOME}/.config/i3/move_to_new_workspace.sh
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1; workspace 1
bindsym $mod+Shift+2 move container to workspace 2; workspace 2
bindsym $mod+Shift+3 move container to workspace 3; workspace 3
bindsym $mod+Shift+4 move container to workspace 4; workspace 4
bindsym $mod+Shift+5 move container to workspace 5; workspace 5
bindsym $mod+Shift+6 move container to workspace 6; workspace 6
bindsym $mod+Shift+7 move container to workspace 7; workspace 7
bindsym $mod+Shift+8 move container to workspace 8; workspace 8
bindsym $mod+Shift+9 move container to workspace 9; workspace 9
bindsym $mod+Shift+0 move container to workspace 10; workspace 10
# Resize window
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Right resize grow 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 Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
## Layouts
# Change layout mode
bindsym $mod+Shift+t layout tabbed
bindsym $mod+Shift+backslash layout splith
bindsym $mod+Shift+minus layout splitv
# Fullscreen
bindsym $mod+f fullscreen toggle
## Floating
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# Toggle tiling/floating
bindsym $mod+Shift+Tab floating toggle
# Change focus from tiling/focus windows
bindsym $mod+Tab focus mode_toggle
## Hardware
# Bluetooth
for_window [title="Bluetooth Devices"] floating enable
# Wifi
bindsym Shift+F12 exec i3-sensible-terminal -t 'wifi-menu' -e 'sudo wifi-menu'
for_window [title="wifi-menu"] floating enable
# Audio
bindsym Shift+F11 exec pavucontrol
for_window [title="Volume Control"] floating enable
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +5%"
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -5%"
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ toggle"
# Search window for Notepadqq
for_window [title="^Search$"] floating enable
## Display
# Search for DP monitor and set it as primary
exec_always --no-startup-id ${HOME}/.config/i3/update_display.sh
# Manage display brightness
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight + 5
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight - 5
# Tint display
exec --no-startup-id "pkill redshift > /dev/null 2>&1 || redshift -t 6500:2500 -l 40:-74"
# Display background
exec_always --no-startup-id xsetroot -solid "#696969"
exec_always --no-startup-id ${HOME}/.fehbg
# Dim inactive windows
exec_always --no-startup-id "compton -b --inactive-opacity 0.95"
# Personalization
new_window pixel 0
for_window [class="^.*"] border pixel 0
gaps inner 10
smart_borders on
client.focused #000000 #285577 #ffffff #404040 #000000
client.focused_inactive #000000 #5f676a #ffffff #484e50 #000000
client.unfocused #000000 #222222 #888888 #292d2e #000000
client.urgent #000000 #900000 #ffffff #900000 #000000
client.placeholder #000000 #0c0c0c #ffffff #000000 #000000