Setting the resize window shortcut to + Right mouse button on Ubuntu 23.04

I have a strong affinity for Linux, and I firmly believe that it surpasses Windows by leaps and bounds. There are a handful of shortcuts that significantly enhance my overall desktop usage experience. One such feature is the ability to effortlessly select text using the mouse and seamlessly paste it using a middle mouse button click, eliminating the need for relying solely on the <Ctrl>+c and <Ctrl>+v commands. You can even use them independently of one another makeing it possible to copy a username and password in one go. Another noteworthy aspect is the capability to move and resize windows without the necessity of precisely targeting the edges or corners; this convenience is truly a blessing.

These shortcuts tend to be consistent across various Linux distributions. I became accustomed to them while using Zorin OS and Pop_OS!. Consequently, when Ubuntu altered this functionality, I recognized the urgency of reverting to my accustomed shortcuts.

In Ubuntu 23.04, the process of relocating windows remains consistent with the norm – accomplished by using the <Super>+left mouse button. However, a departure from the customary approach is observed in window resizing, which now involves employing the <Super>+middle mouse button instead of the conventional <Super>+right mouse button. This alteration significantly disrupted my workflow, particularly considering that my work computer operates on Zorin OS. Consequently, transitioning between work and home environments consistently interfered with my accustomed user experience. And yes, I do find myself frequently resizing windows!

The solution is quite simple however, you just have to open the terminal and issue 2 simple commands:

$ gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
$ gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Super>'

That’s it! No need to restart the machine or to log out, the changes take effect immediately.

Leave a Reply

Your email address will not be published. Required fields are marked *