u/FryChy

Pinned post explaining the Lua transition would help a lot

I commented this on another post and quite a few people agreed, so I thought I share it here.

It would be really useful to have a pinned post explaining what the move to Lua actually improves, what new features it enables, and why such a big change was made.

Right now, it still feels like most people see it as just “new config syntax,” when there’s clearly more to it. The wiki has bits and pieces, but not a dedicated section. Since most people here don’t really read the wiki anyway, a pinned post here would probably help a lot.

I would try to put something together myself, but I am still learning Lua so I am not quite there yet and would not like to spread misinformation using AI. I found some sections of the wiki mention things that are now possible because of Lua, and I found it pretty cool.

reddit.com
u/FryChy — 24 hours ago

Hyprland workspaces module on waybar stopped working after switching to Lua config

After converting my Hyprland config to Lua, clicking workspaces in the hyprland/workspaces module on Waybar no longer switches/focuses the workspace.

Keyboard binds still work perfectly fine, but mouse clicks on the workspace module do nothing now, even scrolling the module does nothing.

 "hyprland/workspaces": {
    "all-outputs": true,
    "show-special": true,
    "on-click": "activate",
    
//"format": "{icon} {windows}",
    "format": "{icon}",
    "format-icons": {
      "active": "",
      "default": ""
    },
    "persistent-workspaces": {
      "1": "1",
      "2": "2",
      "3": "3",
      "4": "4"
    },
    "on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
    "on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
    "sort-by-number": true,
    "active-only": false
  },

Anyone facing this problem?

reddit.com
u/FryChy — 3 days ago

Anyone got Lua-based Hyprland dotfiles? Also, how do you test/debug them?

Had some free time and thought of starting the conversion to Lua for Hyprland configs. I’ve previously configured Niri and MangoWM as well, but wow, the Lua setup feels way more complicated, at first look.

I already started using the example Lua config as a base, but since it’s very minimal, I feel it would help a lot to look at some more complex configs. I checked out setups from ML4W and end4, but understandably they haven’t released Lua versions yet.

Would love to see some Lua-based dotfiles/configs for reference.

Also, what’s the best way to test/debug a Lua Hyprland config without completely breaking your session?

reddit.com
u/FryChy — 4 days ago

Maintenance questions (Cleaning up config files, clearing incomplete download packages)

I had a couple of questions regarding maintaining CachyOS and handling packages.

  1. Most of the time when I run into issues with a package, it usually ends up being because I messed up some config files. My question is: when removing and reinstalling a package, I know configs can remain in ~/.config, but are there other common locations where leftover user configs or related files may still exist?

Is there an easy way to track these down, or maybe a pacman flag that can be added to pacman -Rns for a more complete cleanup? Or just do it manually?

  1. Sometimes when running pacman -Sc, I get errors related to incomplete downloaded packages, like this:

    error: could not open file /var/cache/pacman/pkg/download-HqmQI0: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-7SmCcF: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-ndZt5t: Error reading fd 7

I found that the following command removes them:

sudo rmdir /var/cache/pacman/pkg/download-*

Is this safe to run, or is there a better/recommended way to clean these up?I had a couple of questions regarding maintaining CachyOS and handling packages.

reddit.com
u/FryChy — 6 days ago

Curious how people here approach app choices on Hyprland, excluding TUI apps.

  1. Do you usually stick to GUI apps from a specific DE (like GNOME/KDE/XFCE), or just mix and match based on what works best for you?

For example, I usually look for XFCE app, the main reason being lightweight, and if it doesn't seem right only then I look at others.

  1. Also, for apps like Discord, Spotify and YT Music — do you prefer using them in a normal browser or PWA (Brave in my case), or do you go with native apps, if you use online only?

I have an old laptop and sometimes apps like Spotify is kinda slow, so I use PWAs for some of them. I have heard people are not fan of electron apps due to RAM usage, so just wondering do you use them anyway?

Would be interesting to see how everyone balances this.

reddit.com
u/FryChy — 9 days ago

I’m using Hyprland and have these three apps, Zen Browser, Stremio, and Waydroid each assigned to their own dedicated workspaces.

What I’m trying to achieve is simple: I want each of these apps to always stay maximized and not tile when new windows open. No floating. I tried searching here and the best solution was to use app per workspace. But I often mess it up especially when using the workspace with browser in it (definitely a skill issue).

I’ve already tried:

  • tile off → keeps the window maximized, but new windows open in the background with no way to focus them, like a maximized floating window
  • maximize on → maximizes the first window, but new windows tile and shrink the main window

Neither behaves the way I want. Dynamic rules like size only apply to floating windows, which doesn’t help here. Ideally, I’d like the main window to stay maximized, and any new windows either open elsewhere or at least not interfere with the main one. This would be likely achieved with scrolling layout which I am already using but there aren’t many window rule options for this layout yet.

For now, I’ve switched those dedicated workspaces to the monocle layout, which seems to work better as the main app stays maximized and new windows don’t get sent to the back.

My question is: is there a better way to handle this, or is using monocle layouts on dedicated workspaces the best solution for now until scrolling gets more features?

reddit.com
u/FryChy — 14 days ago
▲ 53 r/cachyos

When I first installed CachyOS with Hyprland, it came with some fairly minimal preconfigured dotfiles (which I ended up removing anyway). A few months later when I reinstalled, it was completely minimal. From what I read on the wiki, they removed the dotfiles because they were difficult to maintain and as far as I know, that’s still the case.

With the recent additions like MangoWM with DMS Shell, and earlier Niri with Noctalia Shell, do you think we might see a return of preconfigured dotfiles for Hyprland?

Just to be clear, I’m not asking because I need them (I’d probably remove them anyway), more just curious from a discussion standpoint.

reddit.com
u/FryChy — 14 days ago

I chose Cachy because it had easier installation for dual boot, arch based and really nice aesthetic.

This distro obviously is quite good for gaming, but I have HP 2019 business laptop where I just play one low end game and othe than its just for study and browsing. I am using hyprland and arch based systems receive packages first so arch based is must.

Now I removed dual boot and I don't really use any of the gaming features, so it got me thinking, does it make sense for me to use Cachy anymore considering my current system?

Edit: I am not planning to switch, just discussing if someone were to use a refurbished business laptop, would it better to use vanilla Arch or Cachy. Probably should have worded this better. My bad.

reddit.com
u/FryChy — 18 days ago
▲ 276 r/Sidemen

He k*lls and then he giggles but above all he steals your hearts.

u/FryChy — 18 days ago