Rick Lamers

05/05/2021, 11:07 AM
Installing i3 on Ubuntu 20.04 gotchas:
sudo apt install i3
Slow scrolling Chrome? Use imwheel:
Copy code
None,      Up,   Button4, 4
None,      Down, Button5, 4
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5

Shift_L, Up, Left
Shift_L, Down, Right
and add
Copy code
exec --no-startup-id imwheel
Screen tearing?
Copy code
# basic configuration
backend = "glx";
vsync = "opengl-swc";
and add
Copy code
exec --no-startup-id compton --config ~/.config/compton.conf -b
No config file?
HiDPI settings?
Copy code
Xft.dpi: 144
Xcursor.size: 32
! Allowed sizes: 24, 32, 48, 64 and 96.
Key bindings?
Copy code
exec --no-startup-id xmodmap ~/.Xmodmap
Write your own .Xmodmap Note! Chrome only detects key remapping if you use the keycode assignment. Example:
Copy code
! Exchange left Alt and left Win
remove mod1 = Alt_L
remove mod4 = Super_L
keycode 133 = Alt_L
keycode 64 = Super_L
add mod1 = Alt_L
add mod4 = Super_L
General rule about adding
exec ...
to the i3 config files, put the after the last
command. Generally it's not order sensitive when doing things like `imwheel`/`xmodmap`.
👀 1


05/05/2021, 12:13 PM
Haven't really seen the use of
before. You can just define this straight up in the i3 config, right? For example I have:
Copy code
set $mod Mod1
To find out which key to map it to you can use
👀 1

Rick Lamers

05/05/2021, 12:39 PM
Xmodmap was for my Mac keyboard needing Alt and Super swapped
+1 for