Open-source News

Qt 5.15 LTS Support Extended An Additional Two Years - For Their Paying Subscribers

Phoronix - Fri, 04/01/2022 - 00:24
The Qt Company announced they will be maintaining the Qt 5.15 long-term support (LTS) code-base by an additional two years...

Poking At A Big NUMA Benchmark Regression In Linux 5.18 Git

Phoronix - Thu, 03/31/2022 - 21:30
There still is a few days left to the Linux 5.18 merge window but already I've started firing up benchmarks of this new kernel on a handful of desktops and servers so far. One benchmark though in particular has been showing a staggering performance drop on Linux 5.18 on multiple systems but overall Linux 5.18 in my testing thus far has been working out well...

openSUSE Tumbleweed Gets First D-Installer Public Experimental Release

Phoronix - Thu, 03/31/2022 - 19:27
Earlier this year was news of (open)SUSE developing "D-Installer" as a new web-based distro installer. D-Installer is to complement YaST's existing Qt/CLI installer front-ends and would open up Web UI support, a better UI, and enhanced integration via the D-Bus installer service. The first public release of openSUSE with this new installer is now available for testing...

Radeon's ROCm 5.1 Released With CRIU Support, More RDNA Enablement

Phoronix - Thu, 03/31/2022 - 18:25
Building off the Radeon ROCm 5.0 series introduced in February, AMD is ending out Q1 by launching the Radeon Open eCosystem 5.1 series...

XWayland 22.1.1 Released - Fixes Some Windowed Apps Stuck To 58 FPS

Phoronix - Thu, 03/31/2022 - 18:01
It's been over one month already since the release of XWayland 22.1 while this morning v22.1.1 was issued with a handful of bug fixes...

Radeon Software For Linux 22.10 Driver Being Prepared For Release

Phoronix - Thu, 03/31/2022 - 17:50
At the moment the Radeon Software for Linux 21.50.2 is AMD's latest packaged graphics driver intended for enterprise Linux distributions. But Radeon Software for Linux 22.10 should soon be announced and can already be fetched from their package archive...

Apple M1 NVMe Linux Driver Out For Review

Phoronix - Thu, 03/31/2022 - 17:28
Sent out last week amid the busy Linux 5.18 merge window days were the patch series wiring up an Apple NVMe driver for use with the M1, M1 Pro, and M1 Max SoCs...

Fedora Looks To Better Onboarding For IoT/Edge Devices

Phoronix - Thu, 03/31/2022 - 17:08
For Fedora 37 later this year the Linux distribution is looking at providing support for zero touch onboarding for IoT / edge devices...

How I customize my Linux window decorations

opensource.com - Thu, 03/31/2022 - 15:00
How I customize my Linux window decorations David Both Thu, 03/31/2022 - 03:00 Up Register or Login to like.

One thing I especially like about Linux is the amazing and vast array of choices in almost everything. Don't like one application for something? There are usually several more you can choose from. Don't like how the desktop works? Pick one of many other desktops. Don't like the window decorations on your desktop? There are many others you can download and try.

What if you don't like one little thing about your choice of window decorations—and all other sets of decorations are not even close?

One of the advantages of open source is that I can change anything I want. So I did.

I use the Alienware-Bluish theme on my Xfce desktop. I like its futuristic look, the cyan and gray colors that match my dark primary color schemes—and sometimes my moods. It has a nice 3D relief in the corners, and the corners and edges are wide enough to grab easily, even with my Hi-DPI resolution. Figure 1 shows the original Alienware-Bluish decorations with the gradient-black-324.0 color scheme I prefer.

Image by:

Figure 1. An active window (with the focus) using the original Alienware-Bluish decorations (David Both, CC BY-SA 4.0)

Two things bother me about this window. First, the intensity of the window name in the title bar for active windows is just too dull for me. The inactive windows have a bright white title that attracts my eye more than the dull cyan color of the active title.

Second, I like dark wallpapers, as you can see in Figure 1. Because the bottom edge of the window does not have a cyan highlight, it can be difficult to determine where the bottom of the windows are located, especially when there are a lot of overlapping windows open.

Pretty minor annoyances, I know, but they just bothered me. And that is one of the coolest things about open source: I can modify anything I want, even for trivial reasons. It just takes a bit of knowledge, which I am sharing with you.

More Linux resources Linux commands cheat sheet Advanced Linux commands cheat sheet Free online course: RHEL technical overview Linux networking cheat sheet SELinux cheat sheet Linux common commands cheat sheet What are Linux containers? Our latest Linux articles Where are the decoration files?

The first thing I needed to do was locate the files for the decorations I am using, Alienware-Bluish. I know this because of the many decorations I have downloaded over the years.

All of the decorative themes I download are located in the /usr/share/themes/ directory so all users will have access to them. Each theme is located in a subdirectory, so the Alienware-Bluish theme is located in the /usr/share/themes/Alienware-Bluish/xfwm4/ directory. The xfwm stands for xf window manager version 4.

If you install your themes in your home directory, they will be located in the ~/.local/share/themes/Alienware-Bluish/xfwm4 directory. Themes stored in your home directory are not available to other users on your computer.

Preparation

I don't like to work on the original files for anything important like a theme, so I used my own non-root account to copy the /usr/share/themes/Alienware-Bluish directory and its contents to a new directory, /usr/share/themes/Alienware-Bluish-2. This gives me a safe place to work without inadvertently damaging the original beyond repair. It also copies files and changes the ownership of the copied files to my own account, so I can copy and edit the files.

Besides, I want to keep the original so I can continue to use it.

Getting started

View the files in the /usr/share/themes/Alienware-Bluish-2/xfce directory using Thunar or another file manager that lets you view image thumbnails, then zoom in to increase the size of the images. Expand the images so you can see them better. Each *.xpm (X11 Pixmap) file is an image of a small window frame section, as you can see in Figure 2.

Image by:

Figure 2: The files that make up the various segments of a window (David Both, CC BY-SA 4.0)

Notice that the different components each have an active and an inactive version. In the case of this theme, they are mostly the same. I now own these copied files, so I can copy and edit them.

Look especially at the bottom-active.xpm and bottom-inactive.xpm files. These are the two files that define the look of the bottom of the window. These two images are only one pixel wide, so they are essentially invisible in Figure 2. The window manager uses as many instances as necessary to create the bottom edge of the window.

Themes for other desktops may use different file formats.

Making the changes

First, I changed the title color. The themerc file contains text configuration data that defines several aspects of the title bar. This file is an ASCII text file. Here is the content for the theme:

full_width_title=true
title_alignment=center
button_spacing=2
button_offset=30
button_layout=S|HMC
active_text_color=#699eb4
inactive_text_color=#ffffff
title_vertical_offset_active=5
title_vertical_offset_inactive=5

The hex numbers in the text color entries define the colors for active and inactive title text. To change the active title text, I need to determine what value to use in this field. Fortunately, there is a tool that can help. The KcolorChooser can be used to select a color from the color palette, or the Pick Screen Color button can be used to choose a color already displayed on the screen.

I used this color picker to locate the cyan highlight in the side of the window, but I found it just a little too bright for the bottom. I wanted it a bit less bright, so I used the tools on the KcolorChooser to adjust the color and intensity to my preference. You can see the result in Figure 3.

Image by:

Figure 3. Using the KcolorChooser to select a specific color (David Both, CC BY-SA 4.0)

The KcolorChooser can be installed if you don't have it already. On Fedora and other Red Hat-based distros, you can use the following command:

dnf -y install kcolorchooser

If you don't already have the KDE desktop or any of its tools installed, this command will install a large number of KDE libraries and other dependencies. It was already installed on my workstation because I have the KDE Plasma desktop installed.

After deciding which color I wanted, I obtained the hex digits for that color from the HTML text box. I then typed those into the themerc file so the active_text_color line looks like this:

active_text_color=#00f1f1

The next part, changing the bottom-active.xpm image file, is a little more complicated. I used GIMP to modify the bottom-active.xpm file, but you can use any graphics editor you are comfortable with. One catch: the image is so small that it needs to be enlarged by a huge amount to be a reasonable size for editing. I found that 8,000% worked well on my display. You can see this in Figure 4. This image is 6 pixels high by 1 pixel wide and black and shades of dark gray.

Image by:

Figure 4. The bottom-active.xpm file shown at 8,000% magnification in GIMP (David Both, CC BY-SA 4.0)

I used the KcolorChooser to find a shade of cyan a little darker than that on the side and top edges of the window. After some playing around with it, I settled on the shade #10b0ae, which I then copied into the text field of the GIMP colors dialog. I had to add this dialog to the dock area at the upper right of the GIMP window by selecting Menu Bar Tools > Dockable Dialogs > Colors. Alternatively, I could have used the color picker, the eye-dropper icon, in the GIMP Colors dialog to simply pick the color from the sample display area of the KcolorChooser.

At any rate, I now had the color I liked in the GIMP color dialog. I used the Rectangle Select tool to select the 3 pixels highlighted in Figure 5 and the Bucket Fill tool to fill the selected area with the new color. Figure 5 shows the final color.

Image by:

Figure 5. The modified bottom-active.xpm file with the addition of cyan (David Both, CC BY-SA 4.0)

Exporting the revised file

GIMP converted the .xpm file into a data format it could use, but it can't save the data directly into a .xpm file. Instead, I used the export function to save the file. This was not a big deal, but a bit unexpected the first time.

During the export, I was presented with a dialog asking for an Alpha Threshold value. I don't know enough about GIMP or manipulating graphics files to know what that is, so I left it alone and clicked on the Export button.

Testing

The changes I made to this theme are easy to test. I simply used the Window Manager to select the Alienware-Bluish-2 theme. This loads the new theme instantly, so I can see the results right away.

Had I not liked the results, I could have made additional changes and tested again. At this point, however, I would have had to change back to the original Alienware-Bluish theme (or any other theme) and then back to the Alienware-Bluish-2 theme to verify the change. The revised files are not loaded until the theme is re-read.

Figure 6 shows the revised theme using the cyan highlights in the bottom window edge. I think it looks much better.

Image by:

Figure 6. A window showing the altered bottom edge (David Both, CC BY-SA 4.0)

Final thoughts

I had no idea how to fix minor problems and annoyances with window decorations until I started this little project. It did take some time and research to figure out how to do this. I learned there is an xpm graphics format, and I learned a little more about working in GIMP, including how to export into that file format. I also discovered this was a fairly easy change to make.

I still don't feel I have the skill or creative vision for graphics to design a completely new window decoration theme. But now I can easily make minor changes to themes someone else has created.

I can make minor modifications to the Alienware-Bluish theme on my Xfce desktop to suit my aesthetic.

Image by:

Pixabay. CC0 Creative Commons

Linux What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

Installation and Review of Bodhi Linux [Lightweight Distro]

Tecmint - Thu, 03/31/2022 - 12:00
The post Installation and Review of Bodhi Linux [Lightweight Distro] first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Bodhi Linux is a new Linux distribution, based on Ubuntu Linux – which in turn is based on Debian – that aims to be lightweight and free. As an Ubuntu-based system, we have the

The post Installation and Review of Bodhi Linux [Lightweight Distro] first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Pages