-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
305 lines (235 loc) · 9.77 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
############################################################################
# Author: @ztao
# Gmail: [email protected]
############################################################################
# This keybinding same as AwesomeWm
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $alt Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# font pango:monospace 8
font pango:DejaVu Sans Mono 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec konsole
# kill focused window
bindsym $mod+Control+q kill
# start dmenu (a program launcher)
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus 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
# move focused window
bindsym $mod+Control+j move left
bindsym $mod+Control+k move down
bindsym $mod+Control+l move up
bindsym $mod+Control+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Control+Left move left
bindsym $mod+Control+Down move down
bindsym $mod+Control+Up move up
bindsym $mod+Control+Right move right
# split in horizontal orientation
bindsym $mod+h 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+t layout tabbed
bindsym $mod+space layout toggle split
# toggle tiling / floating
bindsym $mod+Control+space floating toggle
# change focus between tiling / floating windows
# bindsym $mod+Control+f focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d 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 "1Term"
set $ws2 "2Web"
set $ws3 "3Dev"
set $ws4 "4Test"
set $ws5 "5Write"
set $ws6 "6SSH"
set $ws7 "7Hide"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Control+1 move container to workspace number $ws1
bindsym $mod+Control+2 move container to workspace number $ws2
bindsym $mod+Control+3 move container to workspace number $ws3
bindsym $mod+Control+4 move container to workspace number $ws4
bindsym $mod+Control+5 move container to workspace number $ws5
bindsym $mod+Control+6 move container to workspace number $ws6
bindsym $mod+Control+7 move container to workspace number $ws7
bindsym $mod+Control+8 move container to workspace number $ws8
bindsym $mod+Control+9 move container to workspace number $ws9
bindsym $mod+Control+0 move container to workspace number $ws10
# workspace switch
bindsym $mod+Tab workspace next
bindsym $mod+Right workspace next
bindsym $mod+Left workspace prev
# reload the configuration file
bindsym $mod+Control+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Control+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Control+e exec i3-msg exit
# 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 l resize shrink width 5 px or 5 ppt
bindsym j resize grow height 5 px or 5 ppt
bindsym k resize shrink height 5 px or 5 ppt
bindsym h resize grow width 5 px or 5 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 or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
#bindsym $mod+r mode "default"
}
bindsym $mod+w mode "resize"
# Send some damond window to one workspace
bindsym $mod+n move container to workspace number $ws7
# Some others keybinding
set $refresh_i3status killall -SIGUSR1 i3status
# Use pactl to adjust volume in PulseAudio.----------------------
bindsym XF86AudioRaiseVolume exec "amixer -q sset Master,0 1+ unmute"
bindsym XF86AudioLowerVolume exec "amixer -q sset Master,0 1- unmute"
bindsym XF86AudioMute exec "amixer -q sset Master,0 toggle"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
font pango:Monaco bold 8
font pango:DejaVu Sans Mono 10
height 16
status_command i3status -c ~/.config/i3/i3status.conf| ~/.config/i3/i3status-gpu.py
position top
colors {
background #000000
# statusline #ffffff
statusline #eff0f1
focused_workspace #0000FF #0000FF #ffffff
active_workspace #000000 #333333
inactive_workspace #000000 #000000 #ffffff
urgent_workspace #FF0000 #FF0000 #ffffff
}
}
# Border For All Applications Used For Window Foucs But Can Used Compton :inactive-dim = 0.3;
for_window [class="^.*"] border pixel 1
for_window [title="^.*"] border pixel 1
# border_radius pixel 1
# => 自定义窗口(支持定义边框类型,窗口布局,大小调整,自动归类工作区等等,多个定义用,隔开)
# for_window [class="Google-chrome"] move container to workspace $ws2
for_window [class="netease-cloud-music"] move container to workspace $ws4
for_window [class="Emacs"] move container to workspace $ws3
# # => 窗口边框类型(边框类型有normal正常/none无边框/pixel 1 自定义宽度)
# # 默认普通窗口的边框类型
# new_window pixel 1
# # 默认浮动窗口的边框类型
# new_float normal
# # 取消工作区边缘的边框
# hide_edge_borders both
#设置窗口间距
# gaps inner 6
# gaps outer 2
# gaps left 0
# gaps right 0
# gaps top 0
# gaps bottom 0
# Hide edge borders only if there is one window with no gaps
hide_edge_borders smart_no_gaps
# Only enable gaps on a workspace when there is at least one container
smart_gaps on
# # Only enable outer gaps when there is exactly one container
# smart_gaps inverse_outer
# Activate smart borders (always)
# smart_borders on
# # Activate smart borders (only when there are effectively no gaps)
# smart_borders no_gaps
# border_radius 2
# 在三种边框类型中切换
bindsym $mod+b border toggle
# 窗口颜色 边框 背景 文字 提示
client.focused #545458 #545458 #000000 #333333
client.focused_inactive #545458 #545458 #FFFFFF #3399FF
client.unfocused #000000 #000000 #FFFFFF #3399FF
client.urgent #000000 #000000 #FFFFFF #990000
client.placeholder #000000 #000000 #FFFFFF #000000
client.background #FFFFFF
# Custom keybinding
bindsym Mod1+Control+l exec --no-startup-id i3lock
bindsym $mod+g exec --no-startup-id google-chrome-stable --force-device-scale-factor=1.0 %U --ppapi-flash-path=/home/zhangtao/.config/google-chrome/PepperFlash/libpepflashplayer.so --password-store=gnome
bindsym $mod+e exec --no-startup-id emacs
bindsym $mod+i exec --no-startup-id firefox
bindsym $mod+d exec --no-startup-id nautilus
# bindsym $mod+j exec --no-startup-id /home/zhangtao/Joplin-1.7.11.AppImage
# bindsym $mod+d exec --no-startup-id dolphin
bindsym $mod+r exec --no-startup-id rofi -show run
# bindsym $mod+r exec --no-startup-id albert
bindsym $mod+m exec --no-startup-id netease-cloud-music
# Startup Application
# exec --no-startup-id xfce4-panel --disable-wm-check
exec --no-startup-id fcitx-autostart
exec --no-startup-id xflux -l 30 -g 120 -k 4200
exec --no-startup-id nm-applet
exec --no-startup-id ~/.dropbox-dist/dropboxd
# exec --no-startup-id /home/zhangtao/anaconda3/bin/flashfocus -e 1.0 -o 0.6
exec --no-startup-id compton --backend glx --paint-on-overlay --config /home/zhangtao/.config/i3/compton.conf --detect-client-opacity
# exec --no-startup-id compton --backend glx --paint-on-overlay --vsync opengl-swc
exec --no-startup-id feh --bg-fill ~/.config/i3/background.jpg
exec --no-startup-id xfce4-power-manager #Uncommenting and changing this line in /etc/systemd/logind.conf solved my problem "LidSwitchIgnoreInhibited=no'
# exec --no-startup-id xscreensaver -no-splash
exec --no-startup-id /usr/libexec/gsd-xsettings
exec --no-startup-id ./trojan-1.14.1-linux-amd64/trojan/trojan trojan-1.14.1-linux-amd64/trojan/config.json
exec --no-startup-id xautolock -time 10 -locker 'i3lock -e -c 007f7f'
exec --no-startup-id emacs --daemon
# exec --no-startup-id i3-msg 'workspace 1Term; exec konsole;workspace 6SSH'
# exec --no-startup-id i3-msg 'exec konsole; exec sleep 3'