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
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.