-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Default to $XDG_CONFIG_HOME/azote/azotebg #165
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, shouldn't we just use the XDG_CONFIG_HOME
variable?
f4a4f2c
to
f78c823
Compare
Done. |
0a1bd27
to
581baf0
Compare
Well, I don't agree with what @TamasBarta said in #154:
The config file is common.azote_config_home = os.path.join(xdg_config_home, "azote") if xdg_config_home else os.path.join(
os.getenv("HOME"), ".config/azote") The [edit] I wouldn't like to do it, however. It would affect all the nwg-shell users' configs. |
I don't feel the need to move the file, let people use their current configs and newer people will use the new default ones. Gradually, the people will change to the new location. Moving config files can cause confusion. |
Alright, if you really want. But please take into account not only |
52d5292
to
11e7a60
Compare
What do you think? The advantage now is that people can just put |
Yes, that's basically what I meant. The problem (to me) is that a fresh install of nwg-shell on Arch (w/ the archinstall script) has neither |
Are you sure that it doesn't have I use Arch and I didn't do anything (I use ~/bin), but I have many executables in ~/.local/bin (mostly Python). |
100%. This is my testing laptop:
|
Hey @nwg-piotr, hey @emanuelserpa, What do you think about what I originally wrote in #154 ?
My argument was that as a format, it is a script, but the actual paths of the backgrounds are parsed from the script. If I'm not mistaken, That being said (it may or may not be true, it might even have changed since), That being said, if it moves from I personally would eliminate What do you think? |
I am reluctant to change anything for several reasons. If we leave
Azote is a heavy app, and it takes time to launch it. Of course we would need to execute just several lines of code, but I'm sure the external script is faster. And this would be a breaking change as well.
The app has been packaged for 17 repos, and we must think twice before making breaking changes. What I care most are nwg-shell users. I want them to be able not to edit config files at all, and it means: the project is aimed at users of all skill levels. My nwg-shell updater would have to deal with their main config file, which is a thing I do only if there's no other solution. Do you understand my point of view? |
Well, I still feel that it is effectively a configuration, but I understand @nwg-piotr's point. For Sway, Azote could actually create a configuration like:
then you can call it in sway config using It would be, definitely, an obligatory breaking change and I think azote changes the wallpaper executing the script it creates. PS: this configuration file could be easily applied using |
Sounds not bad to me, but I think I would merge such a change only when I have another unavoidable change to the main sway config file to do. |
nwg-shell already uses 7 includes. One more makes no special difference. |
@nwg-piotr absolutely, I only wanted to write it to display my logic, I don't want to propose such big changes, and especially not as part of this PR's/issue's scope. As I said, any change is appreciated that allows cleaning up |
I think this is the right move, @nwg-piotr. About the transition, we can use a warning window if people are still using
Then this new include would feel even more elegant. |
Alright, this may be done as soon as an opportunity arises, as I mentioned above. For now the idea to include commands is what I like most. |
Uses $XDG_CONFIG_HOME/azote/azotebg as the default location (if $HOME/.azotebg isn't present).
azotebg
is effectively a configuration file that is called by $XDG_CONFIG_HOME/sway/config (or similar).Resolves #154