























Follow ZDNET: Add us as a preferred source on Google.
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.
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.
This is just a sample of the errors in the Codex-generated config file.
Here are the problems I found at first glance:
Also: The best Linux laptops you can buy
I also had to install the following to make this work:
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.
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,
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.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。