You are not logged in.

#1 2026-02-13 07:01:23

CoolFede97
Member
Registered: 2026-02-13
Posts: 1

Hyprland uses a default .conf every time I write mine

Hello.
I'm installing arch linux in a new laptop I got. It has hyprland, and now I'm trying to set it so that it is similar to what I have on my pc. However, I noticed that everytime I do ":w" on vim hyprland uses its default configuration (I guess so, because all the things as the colors, the rounding of the edges of the tiles, etc, change. Also the keyboard language changes) even when I haven't done any changes at all in the hyprland.conf file. Nevertheless, once I reboot, hyprland seems to use my .conf file with all the changes I made before rebooting.

Basically:
turn on laptop (everything is okay) -> write hyprland.conf (my .conf seems to be ignored and hyprland changes) -> reboot (things are normal ok)

It's strange because this happens when I write it. So it looks like when I make hyprland reload manually (I mean, by changing the conf), it uses another one.
Another thing I found is that when I do :wq (write and quit in vim), things work perfectly. It's just when I do :w (write) that hyprland changes everything

In case you wonder, I don't have any "source = .../X.conf" code line in my conf (actually yes but it's commented).

Thanks for reading

Last edited by CoolFede97 (2026-02-13 19:36:51)

Offline

#2 2026-02-17 04:38:44

krtee
Member
Registered: 2026-02-17
Posts: 6

Re: Hyprland uses a default .conf every time I write mine

If you run

:w!

does this also produce the correct result?

Last edited by krtee (2026-02-17 04:38:59)

Offline

#3 2026-02-17 08:16:56

002445
Member
Registered: 2021-10-07
Posts: 33

Re: Hyprland uses a default .conf every time I write mine

How do you open the file? If you use

sudoedit /path/to/file.conf

(which is a good way to edit files you need sudo for) you indeed need to close the editor for sudoedit to replace the config file.

Offline

#4 2026-02-17 12:47:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,153

Re: Hyprland uses a default .conf every time I write mine

Afaiu the OP this is explicitly triggered by the write action.

Is this on btrfs? Does it happen w/ a config on a tmpfs (/tmp)?

Offline

Board footer

Powered by FluxBB