1# This file has been auto-generated by i3-config-wizard(1).
2# It will not be overwritten, so edit it as you like.
3#
4# Should you change your keyboard layout some time, delete
5# this file and re-run i3-config-wizard(1).
6#
7
8# i3 config file (v4)
9#
10# Please see https://i3wm.org/docs/userguide.html for a complete reference!
11
12set $mod Mod4
13
14# Font for window titles. Will also be used by the bar unless a different font
15# is used in the bar {} block below.
16font pango:{{ .font }} 10
17
18# https://github.com/catppuccin/i3
19{{- if eq .theme_variant "light" }}
20set $rosewater #dc8a78
21set $flamingo #dd7878
22set $pink #ea76cb
23set $mauve #8839ef
24set $red #d20f39
25set $maroon #e64553
26set $peach #fe640b
27set $green #40a02b
28set $teal #179299
29set $sky #04a5e5
30set $sapphire #209fb5
31set $blue #1e66f5
32set $lavender #7287fd
33set $text #4c4f69
34set $subtext1 #5c5f77
35set $subtext0 #6c6f85
36set $overlay2 #7c7f93
37set $overlay1 #8c8fa1
38set $overlay0 #9ca0b0
39set $surface2 #acb0be
40set $surface1 #bcc0cc
41set $surface0 #ccd0da
42set $base #eff1f5
43set $mantle #e6e9ef
44set $crust #dce0e8
45{{- end }}
46{{- if eq .theme_variant "dark" }}
47set $rosewater #f4dbd6
48set $flamingo #f0c6c6
49set $pink #f5bde6
50set $mauve #c6a0f6
51set $red #ed8796
52set $maroon #ee99a0
53set $peach #f5a97f
54set $green #a6da95
55set $teal #8bd5ca
56set $sky #91d7e3
57set $sapphire #7dc4e4
58set $blue #8aadf4
59set $lavender #b7bdf8
60set $text #cad3f5
61set $subtext1 #b8c0e0
62set $subtext0 #a5adcb
63set $overlay2 #939ab7
64set $overlay1 #8087a2
65set $overlay0 #6e738d
66set $surface2 #5b6078
67set $surface1 #494d64
68set $surface0 #363a4f
69set $base #24273a
70set $mantle #1e2030
71set $crust #181926
72{{- end }}
73# target title bg text indicator border
74client.focused $pink $mantle $text $rosewater $mauve
75client.focused_inactive $mauve $base $text $rosewater $pink
76client.unfocused $mauve $base $text $rosewater $mauve
77client.urgent $peach $base $peach $overlay0 $peach
78client.placeholder $overlay0 $base $text $overlay0 $overlay0
79client.background $base
80
81# The combination of xss-lock, nm-applet and pactl is a popular choice, so
82# they are included here as an example. Modify as you see fit.
83
84# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
85# screen before suspend. Use loginctl lock-session to lock your screen.
86exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
87
88# NetworkManager is the most popular way to manage wireless networks on Linux,
89# and nm-applet is a desktop environment-independent system tray GUI for it.
90exec --no-startup-id nm-applet
91
92# Use pactl to adjust volume in PulseAudio.
93set $refresh_i3status killall -SIGUSR1 i3status
94bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
95bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
96bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
97bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
98bindsym XF86TouchpadToggle exec --no-startup-id pkill -USR2 -n handy
99bindsym $mod+Next exec --no-startup-id amixer set Capture toggle
100
101# Use playerctl for media controls
102bindsym XF86AudioPlay exec playerctl play-pause
103bindsym XF86AudioNext exec playerctl next
104bindsym XF86AudioPrev exec playerctl previous
105
106# Brightness controls
107bindsym XF86MonBrightnessUp exec "xbacklight +5"
108bindsym XF86MonBrightnessDown exec "xbacklight -5"
109
110# Screenshot with Flameshot
111bindsym Print exec flameshot gui
112
113# lock screen
114bindsym $mod+Shift+b exec loginctl lock-session
115
116# Use Mouse+$mod to drag floating windows to their wanted position
117floating_modifier $mod
118
119# start a terminal
120bindsym $mod+Return exec ghostty
121
122# open emacsclient
123bindsym $mod+Shift+Return exec emacsclient -c
124
125# scratchpad
126bindsym $mod+Shift+grave move scratchpad
127bindsym $mod+grave scratchpad show
128
129# kill focused window
130bindsym $mod+Shift+q kill
131
132# start rofi (a program launcher and window switcher)
133bindsym $mod+shift+z exec "rofi -show run"
134bindsym $mod+c exec "rofi -show calc"
135bindsym $mod+z exec "rofi -show drun"
136bindsym $mod+e exec "rofi -show emoji"
137bindsym $mod+w exec "rofi -show window"
138bindsym $mod+u exec "rofi -show unicode"
139bindsym $mod+Shift+e exec "rofi -show kaomoji"
140bindsym $mod+Shift+p exec "~/.config/rofi/pass.sh"
141
142# bindings for dunst
143bindsym $mod+n exec dunstctl close-all
144bindsym $mod+Shift+n exec dunstctl history-pop
145bindsym $mod+Ctrl+n exec dunstctl context
146
147# change focus
148bindsym $mod+h focus left
149bindsym $mod+j focus down
150bindsym $mod+k focus up
151bindsym $mod+l focus right
152
153# move focused window
154bindsym $mod+Shift+h move left
155bindsym $mod+Shift+j move down
156bindsym $mod+Shift+k move up
157bindsym $mod+Shift+l move right
158
159# split in horizontal orientation
160bindsym $mod+b split horizontal
161
162# split in vertical orientation
163bindsym $mod+v split v
164
165# enter fullscreen mode for the focused container
166bindsym $mod+f fullscreen toggle
167
168# change container layout (stacked, tabbed, toggle split)
169bindsym $mod+t layout tabbed
170bindsym $mod+Shift+s layout toggle split
171
172# toggle floating sticky windows
173bindsym $mod+Mod1+s sticky toggle
174
175# toggle tiling / floating
176bindsym $mod+Shift+space floating toggle
177
178# change focus between tiling / floating windows
179bindsym $mod+space focus mode_toggle
180
181# focus the parent container
182bindsym $mod+a focus parent
183
184# focus the child container
185#bindsym $mod+d focus child
186
187# Define names for default workspaces for which we configure key bindings later on.
188# We use variables to avoid repeating the names in multiple places.
189set $ws1 "1"
190set $ws2 "2"
191set $ws3 "3"
192set $ws4 "4"
193set $ws5 "5"
194set $ws6 "6"
195set $ws7 "7"
196set $ws8 "8"
197set $ws9 "9"
198set $ws10 "10"
199
200# switch to workspace
201bindsym $mod+1 workspace number $ws1
202bindsym $mod+2 workspace number $ws2
203bindsym $mod+3 workspace number $ws3
204bindsym $mod+4 workspace number $ws4
205bindsym $mod+5 workspace number $ws5
206bindsym $mod+6 workspace number $ws6
207bindsym $mod+7 workspace number $ws7
208bindsym $mod+8 workspace number $ws8
209bindsym $mod+9 workspace number $ws9
210bindsym $mod+0 workspace number $ws10
211
212# move focused container to workspace
213bindsym $mod+Shift+1 move container to workspace number $ws1
214bindsym $mod+Shift+2 move container to workspace number $ws2
215bindsym $mod+Shift+3 move container to workspace number $ws3
216bindsym $mod+Shift+4 move container to workspace number $ws4
217bindsym $mod+Shift+5 move container to workspace number $ws5
218bindsym $mod+Shift+6 move container to workspace number $ws6
219bindsym $mod+Shift+7 move container to workspace number $ws7
220bindsym $mod+Shift+8 move container to workspace number $ws8
221bindsym $mod+Shift+9 move container to workspace number $ws9
222bindsym $mod+Shift+0 move container to workspace number $ws10
223
224# reload the configuration file
225bindsym $mod+Shift+c reload
226# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
227bindsym $mod+Shift+r restart
228# exit i3 (logs you out of your X session)
229bindsym $mod+Shift+x exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
230
231# window settings
232default_border none
233default_floating_border none
234
235# resize window (you can also use the mouse for that)
236mode "resize" {
237 # These bindings trigger as soon as you enter the resize mode
238
239 # Pressing left will shrink the window’s width.
240 # Pressing right will grow the window’s width.
241 # Pressing up will shrink the window’s height.
242 # Pressing down will grow the window’s height.
243 bindsym h resize shrink width 10 px or 10 ppt
244 bindsym j resize grow height 10 px or 10 ppt
245 bindsym k resize shrink height 10 px or 10 ppt
246 bindsym l resize grow width 10 px or 10 ppt
247
248 # back to normal: Enter or Escape or $mod+r
249 bindsym Return mode "default"
250 bindsym Escape mode "default"
251 bindsym $mod+r mode "default"
252}
253
254bindsym $mod+r mode "resize"
255
256# custom bindings
257bindsym $mod+m exec ymuse
258bindsym $mod+p exec pavucontrol
259bindsym $mod+o exec obsidian
260
261# workspace bindings
262assign [class="Steam"] $ws4
263assign [class="TelegramDesktop"] $ws6
264assign [class="Gajim"] $ws6
265assign [class="Element"] $ws6
266assign [class="Signal"] $ws6
267assign [class=".*weechat"] $ws6
268assign [class="Hydrus Client"] $ws7
269
270# startup commands
271exec ~/.local/bin/startup