Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request #18

Open
shaymanorigins opened this issue Jul 25, 2024 · 7 comments
Open

Feature request #18

shaymanorigins opened this issue Jul 25, 2024 · 7 comments

Comments

@shaymanorigins
Copy link

While on nixos we have struggled quite a lot with editing the files as we work with nix store, so I had the question if it was possible to add in a command that sets a config path, so maybe my nwg-hello.json is in .config, and a command with which you can set the nwg-hello.css path

@nwg-piotr
Copy link
Owner

You mean flags like nwg-hello -c <config-file-path> -s <style-sheet-path>, right?

@shaymanorigins
Copy link
Author

Yeah and the same thing but for setting the path to where your style is located like nwg-hello -style or whatever to set the styling path

@nwg-piotr
Copy link
Owner
nwg-piotr commented Jul 25, 2024

I have no idea what your problem with editing files on nixos is, but this will require edition of the /etc/nwg-hello/hyprland.conf file, for it to look something like this:

monitor=,preferred,auto,1
bind = ALT, Q, killactive,
misc {
    disable_hyprland_logo = true
}
animations {
    enabled = false
}
exec- -c /your/path/here -s /another/path/here; hyprctl dispatch exit

Is it going to be possible?

@shaymanorigins
Copy link
Author

Sadly that's not possible. We cannot edit our files, we can make new files though. That is because nwg-hello is within the nix/store directory which is read only, so there is no singular way to change it. Except possible commands

@nwg-piotr
Copy link
Owner

Maybe an environment variable would be a solution? Are you allowed to set e.g.:

NWG_SESSION_DIRS=/usr/share/wayland-sessions:/usr/share/xsessions (use your actual paths here)?

@shaymanorigins
Copy link
Author

If I'm correct we are allowed to set variables with the export command. But how could we fix the css as well?

@nwg-piotr
Copy link
Owner
nwg-piotr commented Jul 27, 2024

By adding another env variable. But the most obvious solution would be just patching the config file by the packager, for it to point to proper locations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants