I3 Questions - Rounded Corners and Reverse Scrolling on Mouse?

Good morning friends.

I am looking to see if rounded corners on all applications can be accomplished in i3. I didnt see a result when searching so doesnt seem good lol.

Also, I have been struggling to get natural scrolling / reverse scrolling to work on my mouse. I know there is a config file that I can add a line to, but last time I did this (months ago) I had to use sudo to edit the file which then wrecked my ability to log in. I can’t recall the file or the steps to fix, but I ended up reinstalling the OS anyway.

Any ideas?

Have you tried installing i3-gaps-rounded-git from aur?

1 Like

Ah, I have not. Failed to look thee. I’ll give it a shot now. Thank you!

1 Like

after installing, add this to i3 config

border_radius 10

And then reload config/ restart i3. You don’t need to log out.

Ofc, replace 10 with whatever radius you want.

Relevant comment :point_down:


This picom fork can also give rounded corners, (which look better than the rounding in i3)


1 Like

Worked like a charm! I will agree they arent pretty, may try picoms fork.

1 Like

Hi, for reverse scrolling, u need to edit this file : /usr/share/X11/xorg.conf.d/40-libinput.conf
and then, add Option "NaturalScrolling" "True" to the input u wanna have reverse scrolling

for example, mine looks like this ( i did this only for touchpad, mouse is normal )

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "NaturalScrolling" "True"


Yep, this is the info I tried to implement months ago but caused my login breakage.

So to edit that file, I had to use ‘sudo …’ and after rebooting I couldn’t log in at all. I remember having to do something to reverse that use of the file and get back in.

Is there a certain way I need to edit that file instead of using sudo?

You use sudo to edit these files…

Create a backup before editing. Copy paste the existing file to another location, like your home directory. If after reboot something goes wrong, you can just copy the backed up file back to its place. (It’s not necessary for the file to exist initially)


for that directory, u need to use sudo in order to have access to write new edits to that file
just like flyingcakes said, u can make a backup before changing these kind of files
sudo cp ~/usr/share/X11/xorg.conf.d/40-libinput.conf ~/40-libinput.conf.bak like this
i’m changing scroll direction using this method for a long time and i havent seen any issues, just be careful about double quotations

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.