blob: 8c339612b86a5baae5b9a87e2b8228f01ce0928d (
plain)
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
215
216
217
218
219
220
221
|
# Keyboard layout
exec --no-startup-id setxkbmap -layout es
# Font
font pango:Iosevka 10
# Master key
set $mod Mod4
# Mouse drag floating window
floating_modifier $mod
# Popup fullscreen
popup_during_fullscreen smart
# Start a terminal
bindsym $mod+Return exec st
# Kill focused window
bindsym $mod+Shift+q kill
# Start dmenu / rofi
#bindsym $mod+d exec "dmenu_run -nf '#b4b4b9' -nb '#020221' -sb '#ff3600' -sf '#ffffff' -fn 'Hack-11'"
bindsym $mod+d exec rofi -no-lazy-grab -show drun -modi drun -icon-theme "Papirus" -show-icons -font "Iosevka Nerd Font 12"
# Change focus window
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focus 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
# Vim move focus window
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# Vim focus 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
# Split window
bindsym $mod+ñ split h
bindsym $mod+v split v
# Fullscreen toggle
bindsym $mod+f fullscreen toggle
# Change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# Focus the parent container
bindsym $mod+a focus parent
# Focus the child container
#bindsym $mod+d focus child
# Workspace variables
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"
set $ws10 "10"
# Switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws9
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# Reload the configuration file
#
bindsym $mod+Shift+c reload
# Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# Exit i3 (logs you out of your X session)
bindsym $mod+Shift+e 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'"
# 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
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Polybar
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# Shortcuts
bindsym $mod+Shift+o exec libreoffice
bindsym $mod+t exec dino
bindsym $mod+n exec initnews.sh
bindsym $mod+Shift+g exec krita
bindsym $mod+Shift+Ctrl+l exec rofibooks.sh
bindsym $mod+g exec rofigames.sh
bindsym $mod+y exec invidious_search.sh
bindsym $mod+F8 exec newsboatreload.sh
#bindsym $mod+F9 exec screenzug.sh
bindsym $mod+F9 exec st -n ncmpzug -e ncmpcpp-ueberzug
bindsym $mod+F10 exec firefox
bindsym $mod+F11 exec discord
bindsym $mod+F12 exec steam
# Take screenshots
bindsym $mod+Insert exec screenshots.sh
# Record video
bindsym $mod+Shift+Ctrl+r exec screenrec.sh
bindsym $mod+Shift+Ctrl+s exec killffmpeg.sh
# Disable window titlebars
for_window [class=".*"] border pixel 2
gaps inner 5
gaps outer 5
# HDMI
workspace "10" output HDMI-1
# Wallpaper
exec --no-startup-id exec bash $HOME/.config/feh/.fehbg
# Graphic compositor
exec dbus-launch picom --config ~/.config/picom.conf
# Set colors from Xresources
# Change 'color7' and 'color2' to whatever colors you want i3 to use
# from the generated scheme.
# NOTE: The '#f0f0f0' in the lines below is the color i3 will use if
# it fails to get colors from Xresources.
set_from_resource $fg i3wm.color15 #fff
set_from_resource $bg i3wm.color14 #fff
# class border backgr. text indicator child_border
client.focused $fg $bg $fg $fg $fg
client.focused_inactive $bg $bg $fg $bg $bg
client.unfocused $bg $bg $fg $bg $bg
client.urgent $bg $bg $fg $bg $bg
client.placeholder $bg $bg $fg $bg $bg
client.background $bg
# Assigning and manipulating windows
#for_window [instance="newsboatfs"] move container to workspace $ws10
for_window [instance="mpvfloat"] floating enable, resize set 960 540, move container position center
for_window [instance="ncmpzug"] floating enable, resize set 585 184, move position 683 572
# Start on refresh
exec_always dunst
# Start newsboat
exec newsboat
# Mpc controls
bindsym $mod+Shift+F2 exec mpc volume -5
bindsym $mod+Shift+F3 exec mpc volume +5
bindsym $mod+F5 exec mpc prev
bindsym $mod+Shift+F5 exec mpc seekthrough -00:00:02
bindsym $mod+F6 exec mpc toggle
bindsym $mod+Shift+F6 exec mpc stop
bindsym $mod+F7 exec mpc next
bindsym $mod+Shift+F7 exec mpc seekthrough +00:00:02
bindsym $mod+Shift+F8 exec mpc update
# Applets
exec --no-startup-id nm-applet
exec --no-startup-id pasystray
# Audio
exec --no-startup-id pipewire
exec --no-startup-id pipewire-pulse
exec --no-startup-id wireplumber
# Xresources
exec xrdb -merge ~/.config/X11/xresources
|