-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig
190 lines (160 loc) · 5.8 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
# i3
# colors
set $black #1c1d21
set $grey #1c1c1c
set $white #d0d0d0
# set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling) <stacking|tabbed>
workspace_layout stacking
# configure border style <normal|1pixel|pixel xx|none|pixel>
new_window pixel 1
new_float normal
# hide borders
hide_edge_borders none
for_window [class="^.*"] border none
# font for window titles
font xft:yosemite-san-francisco 11
# use Mouse+$mod to drag floating windows
floating_modifier $mod
# kill focused window
bindsym $mod+Shift+q kill
# change focus
focus_follows_mouse no
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+Ctrl+h move left
bindsym $mod+Ctrl+j move down
bindsym $mod+Ctrl+k move up
bindsym $mod+Ctrl+l move right
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
# split orientation
#bindsym $mod+c split h
#bindsym $mod+v split v
bindsym $mod+q split toggle
# toggle 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+e layout toggle split
#bindsym $mod+w layout tabbed # never used it
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# toggle sticky
# bindsym $mod+Shift+s sticky toggle
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:🌍
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:€
# 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
# Move focused container to workspace
bindsym $mod+Ctrl+1 move container to workspace $ws1
bindsym $mod+Ctrl+2 move container to workspace $ws2
bindsym $mod+Ctrl+3 move container to workspace $ws3
bindsym $mod+Ctrl+4 move container to workspace $ws4
bindsym $mod+Ctrl+5 move container to workspace $ws5
bindsym $mod+Ctrl+6 move container to workspace $ws6
bindsym $mod+Ctrl+7 move container to workspace $ws7
bindsym $mod+Ctrl+8 move container to workspace $ws8
bindsym $mod+Ctrl+9 move container to workspace $ws9
# Move to workspace with focused container
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
# Move workspace to external monitor
bindsym $mod+adiaeresis move workspace to output right
bindsym $mod+odiaeresis move workspace to output left
bindsym $mod+Shift+adiaeresis move right
bindsym $mod+Shift+odiaeresis move left
# Open applications on specific workspaces
## Find out class names using xprop
## 'class' matches the 'WM_CLASS': xprop | grep WM_CLASS
## 'title' matches the 'WM_NAME': xprop | grep WM_NAME
## docs: https://i3wm.org/docs/userguide.html#command_criteria
assign [class="Mozilla Firefox"] $ws2
assign [class="Nightly"] $ws2
assign [class="Firefox Developer Edition"] $ws2
assign [class="firefoxdeveloperedition"] $ws2
assign [class="Chromium"] $ws2
assign [class="Tor Browser"] $ws2
assign [class="brave-browser"] $ws2
assign [class="Brave-browser"] $ws2
assign [class="keepassxc"] $ws9
assign [class="mosh"] $ws3
assign [class="signal"] $ws3
assign [class="Signal"] $ws3
assign [class="YACReaderLibrary"] $ws3
assign [class="Zeal"] $ws3
assign [title="Anki"] $ws3
assign [title="Interactive Brokers"] $ws3
assign [title="OptionTrader"] $ws3
assign [class="OptionTrader"] $ws3
assign [class="jclient-LoginFrame"] $ws3
assign [class="sun-awt-X11-XFramePeer"] $ws3
assign [class="jclient-LoginFrame"] $ws3
assign [class="java"] $ws3
assign [class="monero-wallet-gui"] $ws3
assign [class="Emacs"] $ws3
# Open specific applications in floating mode
for_window [class="mpv"] floating enable
for_window [class="conky"] floating enable
for_window [class="gui.Main"] floating enable
# Open in the background on a second screen
no_focus [class="MuPDF"]
assign [class="MuPDF"] output nonprimary
# Open monitors on specific workspaces
workspace $ws1 output primary
workspace $ws4 output nonprimary
mouse_warping none
no_focus [class="monitor"]
assign [class="monitor"] $ws5
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# Resize window
bindsym $mod+Shift+j resize shrink height 2 px or 2 ppt
bindsym $mod+Shift+k resize grow height 2 px or 2 ppt
bindsym $mod+Shift+h resize grow width 2 px or 2 ppt
bindsym $mod+Shift+l resize shrink width 2 px or 2 ppt
# Theme colors
# class border backgr text indic. child_border
client.focused $grey $grey $white $grey
client.focused_inactive $grey $grey #555753 $grey
client.unfocused $grey $grey #555753 $grey
client.urgent $grey $grey #eb3d54 $grey
client.placeholder $grey $grey $white $grey
client.background $grey
# Start a terminal
# This is set by sxhkd as well,
# but I want to keep it as a backup
# in case something goes wrong with sxhkd
bindsym $mod+Return exec kitty