If you have recently installed the LXQt desktop environment in Ubuntu WSL2 and noticed that the desktop icon spacing is wider than expected with the Taiwan (zh_tw) locale, this article will guide you through the process of adjusting the icon spacing.
Prerequisites
Before we begin, make sure you have the following prerequisites:
- Ubuntu WSL2 with LXQt desktop environment installed.
- Basic understanding of the Linux command line.
Adjusting Icon Spacing
The icon spacing in LXQt desktop environment is controlled by a configuration file named "gtk.css". To adjust the icon spacing, follow these steps:
- Open the terminal and type the following command to open the "gtk.css" file in a text editor:
- Scroll down to find the following lines:
- Add the following lines at the end of the file:
- Save and close the file by pressing Ctrl+X, then Y, and finally Enter.
sudo nano /home//.config/lxqt/gtk-3.0/gtk.css
/* Icon theme settings */
gtk-icon-sizes = "22x22, 32x32, 48x48, 64x64, 128x128, 256x256, 512x512";
/* Taiwan (zh_tw) locale icon spacing */
.desktop {
padding: 0 12px 0 12px;
}
The above steps will add a 12px padding to the left and right of the desktop icons, making them closer together. You can adjust the padding value to your preference.
In this article, we have learned how to adjust the LXQt desktop icon spacing in the Taiwan (zh_tw) locale by editing the "gtk.css" file.