-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi3
179 lines (148 loc) · 5.87 KB
/
i3
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
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# Configure border style <normal|1pixel|pixel xx|none|pixel>
# default_border pixel 2
# default_floating_border pixel 2
default_border pixel 0
default_floating_border pixel 0
hide_edge_borders both
# for_window [all] border pixel 2 # workaround for https://github.com/i3/i3/issues/5149
# custom windows config
for_window [title="(?i)bitwarden"] resize set 400 801
for_window [title="(?i)bitwarden"] move position center
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font xft:Iosevka 15
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# Applications shortcuts
# Terminal
bindsym $mod+Return exec st
# Editor
bindsym $mod+e exec "env LSP_USE_PLISTS=true emacsclient -c -a ''"
# Launcher
bindsym $mod+space exec "rofi -no-default-config -no-fixed-num-lines -drun-display-format {name} -display-drun 'λ' -modi drun,window,emoji -show drun -font 'Iosevka Light 40' -yoffset 256 -location 2"
# Telegram
# bindsym $mod+t exec telegram-desktop
# Screenshot
bindsym Print exec flameshot gui
# Kill focused window
bindsym $mod+q kill
# Fullscreen screenshot
bindsym $mod+s exec scrot
# change focus
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+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth no
# split orientation
bindsym $mod+backslash split h
bindsym $mod+slash split v
# toggle fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# toggle tiling / floating
bindsym $mod+Shift+f floating 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
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# Set window resizing controls
bindsym $mod+Shift+Ctrl+h resize shrink width 3 px or 3 ppt
bindsym $mod+Shift+Ctrl+j resize grow height 3 px or 3 ppt
bindsym $mod+Shift+Ctrl+k resize shrink height 3 px or 3 ppt
bindsym $mod+Shift+Ctrl+l resize grow width 3 px or 3 ppt
bindsym $mod+Shift+Ctrl+Left resize shrink width 3 px or 3 ppt
bindsym $mod+Shift+Ctrl+Down resize grow height 3 px or 3 ppt
bindsym $mod+Shift+Ctrl+Up resize shrink height 3 px or 3 ppt
bindsym $mod+Shift+Ctrl+Right resize grow width 3 px or 3 ppt
# Autostart applications
# exec_always --no-startup-id "~/.config/polybar/launch.sh"
# Keyboard settings
# Keyboard speed
exec_always --no-startup-id "xset r rate 200 30"
# Init FN+KEYS
exec_always --no-startup-id "xbindkeys --poll-rc"
# Keyboard layout, layout trigger & CAPS lock to CTRL
exec_always --no-startup-id "setxkbmap -layout us,ru -option grp:toggle,ctrl:nocaps"
# Map CAPS LOCK to behave as ESC *and* as CTRL
exec_always --no-startup-id "xcape -e 'Control_L=Escape'"
set_from_resource $term_background background
set_from_resource $term_foreground foreground
set_from_resource $term_color0 color0
set_from_resource $term_color1 color1
set_from_resource $term_color2 color2
set_from_resource $term_color3 color3
set_from_resource $term_color4 color4
set_from_resource $term_color5 color5
set_from_resource $term_color6 color6
set_from_resource $term_color7 color7
set_from_resource $term_color8 color8
set_from_resource $term_color9 color9
set_from_resource $term_color10 color10
set_from_resource $term_color11 color11
set_from_resource $term_color12 color12
set_from_resource $term_color13 color13
set_from_resource $term_color14 color14
set_from_resource $term_color15 color15
# Theme colors
# class border backgr. text indic. child_border
client.focused #373b41 #373b41 #373b41 #373b41
client.focused_inactive #202225 #202225 #c5c8c6 #373b41
client.unfocused #202225 #202225 #c5c8c6 #202225
client.urgent #202225 #202225 #c5c8c6 #202225
client.placeholder #000000 #0c0c0c #c5c8c6 #000000
client.background #151515
# Set inner/outer gaps
# gaps inner 8
gaps inner 0
gaps outer 0