I asked Codex AI to customize my Hyprland desktop – it worked, but beginners beware


hyperlandhero-laptop

Jack Wallen/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET’s key takeaways

  • Configuring the Hyprland window manager is challenging.
  • I wanted to see how well AI would perform at creating a .conf file.
  • There’s an important lesson to be learned here.

This is the year I realized how much I enjoy tiling window managers, and Hyprland is my favorite so far.

If you’ve never experienced a tiling window manager, know that they aren’t exactly for the faint of heart. They are driven by keyboard shortcuts, of which there are a lot to memorize. On top of that, most of them require configuration via text files.

Such is the case with Hyprland.

Hyprland is configured via the ~/.config/hyrp/hyrpland.conf file; for the uninitiated, it can be rather daunting. You really should know what you’re getting into before you make that first edit to the file.

Also: How to install Arch Linux without losing your mind

I’ve done a bit of Hyprland dotfile ricing (a fancy way of saying I’ve spent time customizing hyprland.conf files), but I decided to run a little experiment.

I wanted to see if AI could create a hyperland.conf file based on my prompt. I decided to start fresh with a CachyOS installation. (I selected both the Hyrpland and KDE Plasma desktops — why I added both will become clear shortly.) Once I had CachyOS up and running, I started the process. I decided to try three different AI tools: Opera’s Aria, Ollama, and Codex.

Of the three AI tools, Codex was the only one capable of creating a remotely usable configuration. Here’s how it went.

The prompt

To create the customization, I used the following prompt:

Create a hyprland.conf configuration file for Hyprland version 0.55.2 that uses Waybar with a glassy, rounded-corner theme, a color palette of purple and pink, and uses the following keybindings: Super+t to open the terminal, Super+b to open the web browser, and the default keybindings for moving windows and window focus.

Upon running the query, every AI service I used informed me that many configuration options would be placeholders and that I would need to customize them to fit my needs.

Also: 7 AI coding techniques I use to ship real, reliable products – fast

It took a few tries, but eventually Codex gave me this .conf file, which you can view in my GitHub repository.

I had my doubts that it would work. Even so, I added the contents from Codex and reloaded the window manager with:

hyprctl reload

I was not surprised to encounter numerous errors. I’d spotted some of the errors even before I copied the output to the .conf file, but wanted to see what happened regardless.

Hyprland

This is just a sample of the errors in the Codex-generated config file.

Screenshot by Jack Wallen/ZDNET

Here are the problems I found at first glance:

  • There was no default terminal set.
  • The border_radius option no longer works in 0.55.2.
  • In the rounding = 12px option, the px would cause an error, so it had to be removed.
  • Windowrule does not work.

Also: The best Linux laptops you can buy

I also had to install the following to make this work:

  • kitty terminal app
  • Waybar
  • rofi

Without the above installed, Hyprland wouldn’t be very functional.

After resolving the above issues, I was surprised that the .conf file worked. It wasn’t a very elegant desktop, nor did it apply the color scheme I added in my query, but I had a skeleton .conf file I could use to further tweak.

Why did I install KDE Plasma?

When I first set out to do this, I only installed Hyprland on CachyOS. After adding the contents to the config file as-is (because I wanted to see how it worked), I wound up with what was essentially a non-functioning desktop. The main reason for this is that kitty, Waybar, and Rofi were not installed.

Also: KDE Linux is the purest form of Plasma I’ve used in months – but there’s a catch

I installed CachyOS a second time, only with KDE Plasma along for the ride. With KDE Plasma added, I knew I had a backup desktop environment to use, should things go awry. All I had to do was reboot CachyOS, log into KDE Plasma, and fix the issues.

Once I had all of the issues fixed within the Codex-derived .conf file, Hyprland worked as expected. Of course, there were a lot of tweaks that needed to be taken care of to get it exactly how I wanted it to look, 

A lesson learned

I was fairly certain how this experiment would turn out, and it solidified my opinion that AI is often wrong but can at least serve as a launching point. Even though I explained to Codex (the only AI to come close to creating a functioning hyprland.conf file) which version of Hyprland I was using, it still used options that are no longer viable.

Also: GNOME 50 is a brilliant release – but I had to look twice to see why

To those who might be interested in migrating to the Linux operating system, I first want to say that Hyprland is not the window manager for you. Stick with KDE Plasma, Cinnamon, or GNOME. For those who want to try and use Hyprland (or any tiling window manager configured with a text file), consider AI to be a means to see how the configuration files work, but make sure to learn from what AI presents to you, so you can understand how it works and can start creating files on your own.

Think of AI as nothing more than a means to take your first steps, but know that you will have to correct its mistakes.





Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews







We may receive a commission on purchases made from links.

A toolkit can go a long way toward helping you stock up on essentials. All of the major tool brands offer different kinds, including the longstanding power and hand tool favorite, Craftsman. Its products can be found in many online stores, and Amazon is currently holding a major sale. At the time of publication, a 262-piece Craftsman hand tool set is on a massive markdown of 40% off, saving you $100 at checkout.

The collection currently costs $149, which is still a lot of money, but is a big budgetary improvement over the $249 regular price. With the discount, you’re getting more for your dollar, and this kit includes 118 sockets, three ratchets to use them on, 24 wrenches, 44 hex keys, 66 specialty bits, and seven extra accessories. The set comes in a three-drawer, handled toolbox that’s part of the Craftsman VersaStack modular storage system. You’re also getting a full lifetime warranty.

While the price and quantity of tools may seem right, what is there to say about the quality of this Craftsman kit? According to most customers, it’s a worthwhile buy for any DIYer, even without a huge sale to sweeten the deal.

How online buyers feel about this Craftsman tool kit

On Amazon, the response to this specific Craftsman tool kit has been resoundingly positive. There are currently close to 300 reviews discussing this specific variant and over 10,000 for the overall product, and the vast majority gave it five stars. Most found the quality of the tools and sockets more than up to par, the VersaStack toolbox sturdy and great for organization and protection, and the price adequate. Still, it’s often said this is more of a beginner or around-the-house kind of kit, so if you want it for professional use, it’s not considered the strongest option on the market.

Elsewhere online, this kit has continued to garner largely positive press. On the Craftsman website itself, almost all of the 18 reviews gave it five stars. Some applauded the functionality of the VersaStack case and its ability to connect to other boxes in the line, while others praised the versatility of the tools within. Meanwhile, most of the 289 reviews on Lowe’s website are five-star and approve of the kit’s piece selection and durability.

There are a lot of great mechanic tool sets for anyone’s budget, and there could be a case to make that this Craftsman 262-piece set belongs alongside them. At its sale price or otherwise, it’s a hit across several retailers. Whether it’s the right set for you and your hand tool-related needs, though, is a question only you can answer. 





Source link