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:Triplicate A 10
17
18# https://github.com/catppuccin/i3
19{{- if eq .theme_variant "light" }}
20include catppuccin-latte
21{{- end }}
22{{- if eq .theme_variant "dark" }}
23include catppuccin-macchiato
24{{- end }}
25# target title bg text indicator border
26client.focused $pink $base $text $rosewater $pink
27client.focused_inactive $mauve $base $text $rosewater $mauve
28client.unfocused $mauve $base $text $rosewater $mauve
29client.urgent $peach $base $peach $overlay0 $peach
30client.placeholder $overlay0 $base $text $overlay0 $overlay0
31client.background $base
32
33# The combination of xss-lock, nm-applet and pactl is a popular choice, so
34# they are included here as an example. Modify as you see fit.
35
36# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
37# screen before suspend. Use loginctl lock-session to lock your screen.
38exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
39
40# NetworkManager is the most popular way to manage wireless networks on Linux,
41# and nm-applet is a desktop environment-independent system tray GUI for it.
42exec --no-startup-id nm-applet
43
44# Use pactl to adjust volume in PulseAudio.
45set $refresh_i3status killall -SIGUSR1 i3status
46bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
47bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
48bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
49bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
50bindsym Pause exec --no-startup-id amixer set Capture toggle
51
52# Use playerctl for media controls
53bindsym XF86AudioPlay exec playerctl play-pause
54bindsym XF86AudioNext exec playerctl next
55bindsym XF86AudioPrev exec playerctl previous
56
57# Brightness controls
58bindsym XF86MonBrightnessUp exec "xbacklight +5"
59bindsym XF86MonBrightnessDown exec "xbacklight -5"
60
61# Screenshot with Flameshot
62bindsym Print exec flameshot gui
63
64# lock screen
65bindsym $mod+Shift+b exec loginctl lock-session
66
67# Use Mouse+$mod to drag floating windows to their wanted position
68floating_modifier $mod
69
70# start a terminal
71bindsym $mod+Return exec st
72
73# open emacsclient
74bindsym $mod+Shift+Return exec emacsclient -c
75
76# scratchpad
77bindsym $mod+Shift+grave move scratchpad
78bindsym $mod+grave scratchpad show
79
80# kill focused window
81bindsym $mod+Shift+q kill
82
83# start rofi (a program launcher and window switcher)
84bindsym $mod+shift+z exec "rofi -show run"
85bindsym $mod+c exec "rofi -show calc"
86bindsym $mod+z exec "rofi -show drun"
87bindsym $mod+e exec "rofi -show emoji"
88bindsym $mod+w exec "rofi -show window"
89bindsym $mod+u exec "rofi -show unicode"
90bindsym $mod+Shift+e exec "rofi -show kaomoji"
91
92# bindings for dunst
93bindsym $mod+n exec dunstctl close-all
94bindsym $mod+Shift+n exec dunstctl history-pop
95bindsym $mod+Ctrl+n exec dunstctl context
96
97# change focus
98bindsym $mod+h focus left
99bindsym $mod+j focus down
100bindsym $mod+k focus up
101bindsym $mod+l focus right
102
103# move focused window
104bindsym $mod+Shift+h move left
105bindsym $mod+Shift+j move down
106bindsym $mod+Shift+k move up
107bindsym $mod+Shift+l move right
108
109# split in horizontal orientation
110bindsym $mod+b split horizontal
111
112# split in vertical orientation
113bindsym $mod+v split v
114
115# enter fullscreen mode for the focused container
116bindsym $mod+f fullscreen toggle
117
118# change container layout (stacked, tabbed, toggle split)
119bindsym $mod+t layout tabbed
120bindsym $mod+Shift+s layout toggle split
121
122# toggle floating sticky windows
123bindsym $mod+Mod1+s sticky toggle
124
125# toggle tiling / floating
126bindsym $mod+Shift+space floating toggle
127
128# change focus between tiling / floating windows
129bindsym $mod+space focus mode_toggle
130
131# focus the parent container
132bindsym $mod+a focus parent
133
134# focus the child container
135#bindsym $mod+d focus child
136
137# Define names for default workspaces for which we configure key bindings later on.
138# We use variables to avoid repeating the names in multiple places.
139set $ws1 "1"
140set $ws2 "2"
141set $ws3 "3"
142set $ws4 "4"
143set $ws5 "5"
144set $ws6 "6"
145set $ws7 "7"
146set $ws8 "8"
147set $ws9 "9"
148set $ws10 "10"
149
150# switch to workspace
151bindsym $mod+1 workspace number $ws1
152bindsym $mod+2 workspace number $ws2
153bindsym $mod+3 workspace number $ws3
154bindsym $mod+4 workspace number $ws4
155bindsym $mod+5 workspace number $ws5
156bindsym $mod+6 workspace number $ws6
157bindsym $mod+7 workspace number $ws7
158bindsym $mod+8 workspace number $ws8
159bindsym $mod+9 workspace number $ws9
160bindsym $mod+0 workspace number $ws10
161
162# move focused container to workspace
163bindsym $mod+Shift+1 move container to workspace number $ws1
164bindsym $mod+Shift+2 move container to workspace number $ws2
165bindsym $mod+Shift+3 move container to workspace number $ws3
166bindsym $mod+Shift+4 move container to workspace number $ws4
167bindsym $mod+Shift+5 move container to workspace number $ws5
168bindsym $mod+Shift+6 move container to workspace number $ws6
169bindsym $mod+Shift+7 move container to workspace number $ws7
170bindsym $mod+Shift+8 move container to workspace number $ws8
171bindsym $mod+Shift+9 move container to workspace number $ws9
172bindsym $mod+Shift+0 move container to workspace number $ws10
173
174# reload the configuration file
175bindsym $mod+Shift+c reload
176# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
177bindsym $mod+Shift+r restart
178# exit i3 (logs you out of your X session)
179bindsym $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'"
180
181# window settings
182default_border none
183default_floating_border none
184
185# resize window (you can also use the mouse for that)
186mode "resize" {
187 # These bindings trigger as soon as you enter the resize mode
188
189 # Pressing left will shrink the window’s width.
190 # Pressing right will grow the window’s width.
191 # Pressing up will shrink the window’s height.
192 # Pressing down will grow the window’s height.
193 bindsym h resize shrink width 10 px or 10 ppt
194 bindsym j resize grow height 10 px or 10 ppt
195 bindsym k resize shrink height 10 px or 10 ppt
196 bindsym l resize grow width 10 px or 10 ppt
197
198 # back to normal: Enter or Escape or $mod+r
199 bindsym Return mode "default"
200 bindsym Escape mode "default"
201 bindsym $mod+r mode "default"
202}
203
204bindsym $mod+r mode "resize"
205
206# custom bindings
207bindsym $mod+m exec ymuse
208bindsym $mod+p exec pavucontrol
209bindsym $mod+o exec obsidian
210
211# workspace bindings
212assign [class="Steam"] $ws4
213assign [class="TelegramDesktop"] $ws6
214assign [class="Gajim"] $ws6
215assign [class="Element"] $ws6
216assign [class="Signal"] $ws6
217assign [class=".*weechat"] $ws6
218assign [class="Hydrus Client"] $ws7
219
220# startup commands
221exec ~/.local/bin/startup-i3