https://www.orchest.io/ logo
r

Rick Lamers

05/05/2021, 11:07 AM
Installing i3 on Ubuntu 20.04 gotchas:
Installing?
sudo apt install i3
Slow scrolling Chrome? Use imwheel:
~/.imwheelrc
Copy code
"chrome"
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
~/.config/i3/config
Copy code
exec --no-startup-id imwheel
Screen tearing?
~/.config/compton.conf
Copy code
# basic configuration
backend = "glx";
vsync = "opengl-swc";
and add
~/.config/i3/config
Copy code
exec --no-startup-id compton --config ~/.config/compton.conf -b
No config file?
i3-config-wizard
HiDPI settings?
~/.Xresources
Copy code
Xft.dpi: 144
Xcursor.size: 32
! Allowed sizes: 24, 32, 48, 64 and 96.
Key bindings?
~/.config/i3/config
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
exec
command. Generally it's not order sensitive when doing things like `imwheel`/`xmodmap`.
@Jacopo
👀 1
y

Yannick

05/05/2021, 12:13 PM
Haven't really seen the use of
xmodmap
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
xev
👀 1
r

Rick Lamers

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