I used Codex to customize my Hyprland desktop – and learned a valuable AI lesson


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


Love him or hate him, Seth MacFarlane has an immovable place in the realm of TV comedy, and Ted is an excellent showcase for the writer at his best. A seasoned actor and writer of over 3 decades, he has created numerous hit productions, including adult animation tentpoles like Family Guy and American Dad!, as well as The Orville.

However, his talents have also allowed him to make the leap from television to the big screen, including his 2012 comedy Ted, which asked what would happen to a child who wished their teddy bear for life once they grew into adults.

However, in 2024, MacFarlane brought Ted to the small screen with a television series that dived into the times not seen in the 2012 movie. And I personally feel that the show has become one of MacFarlane’s finest projects to date:

How Does Ted Tie Into The Movies?

A new side of John and Ted

Ted is set between the opening 1985 sequence of the original 2012 movie and the present-day sequence, honing in on John’s teenage years at high school as Max Burkholder takes on the role. When Ted pushes things too far, he is forced to attend school with John, leading to the pair experiencing many major developmental milestones together. From falling in love to going against his parents’ wishes and trying weed for the first time, the pair take on the world together.

Alongside the main duo, Ted also shines a light on the rest of the Bennett household. Frequent MacFarlane collaborator Scott Grimes takes on the voice of John’s loudmouthed conservative father Matty, while Alanna Ubach portrays his soft-spoken, good-hearted mother Susan. The Bennett family is rounded out by Giorgia Wigham’s Blaire, John’s politically minded cousin staying with the family who is always looking out for the leading pair.

A new addition to the lore

Much like Family Guy and American Dad took on The Simpsons‘ animated family sitcom and The Orville lampooned Star Trek, Ted twists a certain style of sitcom. There have been no shortage of throwback sitcoms set in the past since the late 2010s, with The Goldbergs and Young Sheldon playing into the nostalgia people either have for that time or recognize through long-running franchises or series like Stranger Things to attract viewer attention.

In Ted, the show turns its lens to the 1990s, with Blaire being part of the youthful generation who wants to challenge the status quo. However, she butts heads with various authority figures. Plus, Matty and Jon find themselves affected by the OJ Simpson case in varying ways.

Collage featuring 1990s sitcoms around an old TV.


Go Retro and Stream These 10 Sitcoms of the 1990s

These are the 1990s prime time sitcoms that have held up better than my collection of Pogs.

Despite this setting and inevitable plays on the events of the decade, the show isn’t entirely dependent on nostalgia. Ted’s very existence already set the series up in a position where it could do anything, and MacFarlane doesn’t hold back. From new talking toys and the relatable gag about how hot McDonald’s apple pies are to an entire episode that cuts between the group playing a Dungeons and Dragons game around a table and their characters within the game’s world, the series isn’t afraid to get strange. Because of that, it is hard to find an underwhelming episode throughout its run.

Ted has a surprising amount of heart

Is this the best of Seth MacFarlane?

While MacFarlane is a seasoned comedic writer whom audiences are incredibly familiar with, from his strengths to his stylistic flaws, I do feel that Ted is, for the most part, the best of what he has to offer. The series does have the sharper edge his humor can have at times, with Ted himself having some absolutely devastating insults towards the bullies at John’s school, as well as the cast overall tiptoeing between crass humor and smartly written gags. But this is a story about a bear brought to life with a child’s wish, so there is always a good deal of heart within every episode.

Thanks to the incredible chemistry between the cast, the Bennett family unit is easy to root for. Part of the enjoyment of the show is seeing John grow into the man he was in the original movie, but it is also heartwarming to see Blaire find her place in the Bennett household, even if she butts heads with Matty. Meanwhile, even Matty has several moments of vulnerability despite his hard-headed, typically politically incorrect self, which show just why Susan, who is the delightful and lovable heart of the show, fell for him.

One week the family may be playing a Dungeons and Dragons game to replenish their stash of weed, and the next will see them dedicating themselves to fulfilling Susan’s unrealized dream or helping Matty through the stranger side of his experiences in Vietnam. Even John’s bully Clive (Jackson Seavor McDonald) gets an off-kilter spotlight where the leading pair go from pulling a horrible revenge prank on him to becoming his unlikely father figures. MacFarlane’s edge is always there, but there is always a softer side to tug at your heartstrings and cushion you if not every gag lands.​​​​​​​

Where to watch Ted

All episodes are now streaming

Ted falls out of the tumble dryer in Ted. Credit: Peacock

​​​​​​​ Both seasons of Ted are currently available in their entirety on Peacock. Season 1 consists of 7 episodes, while season 2 received a larger episode count of 8. However, even after having an overall positive response and viral attention thanks to shared and reposted clips, MacFarlane confirmed that there were no current plans for season 3, as the costs to bring Ted to life on a television budget are incredibly high.

However, as Ted said himself, “Don’t be sad because it’s over; be happy because it happened.” Even against the costs, MacFarlane set out to ensure that Ted’s surprising expansion into television would still be a fulfilling experience, ensuring that the series could at least end on a satisfying note. As such, if you wish to see just how having an irresponsible magical stuffed friend shaped John’s life ahead of the movies, you will not be disappointed.​​​​​​​



Source link