Sparkling gems and new releases from the world of Free and Open Source Software
qddcswitch
If you've read the above description of the wonderful ddcutil
, used to control various aspects of your display, you'll see that ddcutil
is not a simple tool to use. To get the most out of it, you need to introspect your hardware and understand the values it accepts and returns. It's powerful but complicated, especially if all you need to do is change which input to display. Many of us will have more than one computer connected to a single screen, which will often have more than one HDMI or DisplayPort input. But if all you want to do is change the input, then qddcswitch
is a much better option. This is a small graphical application that does away with needing to understand anything about your hardware or the ddcutil
commands necessary to control it. Instead, it works out what's connected to your computer automatically and presents this information in an easy-to-interpret grid.
This grid is most useful if you have more than one screen connected, with more than one computer connected to those screens. Screens are automatically detected and presented in an Add a Display list from which you can choose which screens are included. This is a useful way of making sure you don't switch the screen with qddcswitch
while you're managing other connections. Each screen has its own row in the grid, and each screen's inputs are listed to the right in columns. You can then easily switch between the various inputs of all your connected screens. It's a brilliant way to switch between inputs and much easier than using the typical menu system you find on most monitors. The only thing missing is builds for other operating systems so you can have qddcswitch
running on any computer you own. But this is hopefully just a compile away.
Project Website
https://codeberg.org/Okxa/qddcswitch
Modern diff
Difftastic
There have been command-line tools for comparing files ever since there was a command line. The most famous is of course the venerable diff
. This will, by default, compare two files and print output with annotated <
and >
symbols to show which lines have been removed and added. Other modes, such as the context format, can make this easier to understand and parse by other tools, including patch
, but it always rigidly counts differences without any background context on what might cause those differences outside of an intentional edit. This is where Difftastic can help. It's a modern version of the same diff
command that understands the context of the files it's looking at, hopefully reducing errors and making it easier to use.
Difftastic is run from the command line as difft
and will take the same arguments as diff
. Unlike diff
, however, difft
can specifically parse files written in over 20 programming languages. This means it can understand when differences are just whitespace in formatting rather than syntactical differences in a programming language. It can also understand nesting and whether line wrapping is meaningful for whatever languages it's checking for. Each of these examples would cause false positives from the original diff
and make it considerably harder to see the real changes in the code, especially when dealing with pull requests written by different developers. There's also a side-by-side display option, as well as the normal diff
output modes, and it will fall back to traditional difference tracking if it can't discern the languages or formats involved. It's a great alternative to the original diff
if you're using one of the supported languages. If you're not, adding your language of choice to the project is a great way to contribute to open source.
Project Website
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.