-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
214 lines (173 loc) · 6.41 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
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# Set the mod key.
set $mod Mod4
# Start dbus for keyring etc.
exec --no-startup-id dbus-update-activation-environment --all
# Start xdg autostart .desktop files using dex.
exec --no-startup-id dex --autostart --environment i3
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
# Start dunst notification agent.
exec --no-startup-id dunst
# Start network manager applet.
exec --no-startup-id nm-applet
# Start blueberry manager for bluetooth.
exec --no-startup-id blueberry-tray
# Start ulauncher and hide window.
exec --no-startup-id ulauncher --hide-window --no-window-shadow
# Start jetbrains toolbox minimized mode.
exec --no-startup-id jetbrains-toolbox --minimize
# Start 1password in silent mode.
exec --no-startup-id 1password --silent
# Set motnitor layout.
exec_always --no-startup-id xrandr --output eDP --auto --mode 1920x1200 --output DisplayPort-8 --auto --mode 2560x1440 --left-of eDP --pos 0x0 --output DisplayPort-7 --auto --mode 2560x1440 --left-of DisplayPort-8 --rotate left --pos 1280x0
# Define background.
exec --no-startup-id feh --bg-center ~/.images/backgrounds/gowizzardV2.jpg
# Start thunar file manager in daemon mode.
exec --no-startup-id thunar --daemon
# Set mouse + modifier to drag floating windows.
floating_modifier $mod
# Start ulauncher (a program launcher).
bindsym $mod+space exec --no-startup-id ulauncher-toggle
# Start the kitty terminal.
bindsym $mod+Return exec kitty -e tmux
# Start thunar file manager.
bindsym $mod+e exec thunar
# Enter fullscreen mode for the focused container.
bindsym $mod+f fullscreen toggle
# Kill focused window.
bindsym $mod+Shift+q kill
# Define the focus keys.
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Define he move focused window.
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Modes for system controls (lock, reboot, poweroff).
mode "system" {
bindsym l exec --no-startup-id i3lock -c 000000 --nofork, mode "default"
bindsym Shift+r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
bindsym Escape mode "default"
}
bindsym $mod+s mode "system"
# Mode for configuration (reload, restart, exit).
mode "config" {
bindsym c reload, mode "default"
bindsym r restart, mode "default"
bindsym e exit, mode "default"
bindsym Escape mode "default"
}
bindsym $mod+c mode "config"
# Resize window (you can also use the mouse for that).
mode "resize" {
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
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Audio control keybindings.
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
# Music control keybindings.
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
# Define workspaces on monitors.
workspace 1 output DisplayPort-8
workspace 2 output DisplayPort-8
workspace 3 output DisplayPort-8
workspace 4 output DisplayPort-8
workspace 5 output DisplayPort-8
workspace 6 output DisplayPort-7
workspace 7 output DisplayPort-7
workspace 8 output eDP
workspace 9 output eDP
# 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
# Move focused container to workspace.
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
# Define autostart for programms.
exec --no-startup-id i3-msg 'workspace number 1; exec firefox'
exec --no-startup-id i3-msg 'workspace number 6; exec kitty -e tmux'
# Define workspace for applications
assign [class="^jetbrains-goland$"] 2
assign [class="^jetbrains-pycharm$"] 2
assign [class="^Code"] 2
assign [class="^GitKraken"] 4
assign [class="^thunderbird$"] 5
assign [class="^Slack$"] 8
assign [class="^Signal$"] 9
# Define floating windows.
for_window [title="Network Connections"] floating enable
for_window [title="Ulauncher Preference"] floating enable
for_window [title="JetBrains Toolbox"] floating enable
# Set theme colors.
set $white #FFFFFF
set $black #000000
set $blue #19ABFF
set $grey #262626
set $red #FF1938
# Define font for windows.
font pango: JetBrains Mono SemiBold 10
# Set default border for normal and floating.
default_border pixel 0
default_floating_border pixel 0
# Add gaps for windows.
gaps inner 10
smart_gaps on
# Define settings for the bar.
bar {
output eDP
output DisplayPort-8
tray_output eDP
status_command ~/.config/i3/i3status
separator_symbol " | "
font pango: JetBrains Mono SemiBold, Font Awesome 6 Brands 10
padding 0 10px 0 0
workspace_min_width 22
colors {
separator $grey
focused_workspace $blue $blue $white
inactive_workspace $black $black $white
urgent_workspace $red $red $white
}
}
bar {
output DisplayPort-7
tray_output none
font pango: JetBrains Mono SemiBold 10
workspace_min_width 22
colors {
focused_workspace $blue $blue $white
inactive_workspace $black $black $white
urgent_workspace $red $red $white
}
}