-
Notifications
You must be signed in to change notification settings - Fork 623
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
rofi-theme-selector: Store config in XDG_CONFIG_HOME if set #781
Conversation
Codecov Report
@@ Coverage Diff @@
## next #781 +/- ##
=========================================
+ Coverage 73.06% 73.16% +0.1%
=========================================
Files 37 37
Lines 9864 9869 +5
=========================================
+ Hits 7207 7221 +14
+ Misses 2657 2648 -9
Continue to review full report at Codecov.
|
Good catch. I'm also wondering why this script doesn't look in It seems like we've been using XDG so far, but haven't completely been consistent. Not sure if that's the case or not. All I know is that I use ~/.config/{application}/ for nearly all of my dotfiles. It seems to be what most applications do. |
As for themes location, (“packaged”) themes are data, so |
As for the fix, I think the common idiom is |
@sardemff7 thank you for the info. That's pretty cool that there's an idea of a "packaged" theme and a "non packaged" or "user's custom theme" concept. I've not heard of this in the documentation. Is there documentation on how to both publish and import a "packaged" theme? Having that knowledge would help me a lot. I'm trying to learn as much as I can about themes and configuration and get it documented as I go along. I've created a page about themes in the wiki and have been adding to it as I learn new things. My goal is for it to be a complete reference for working with these concepts in rofi post 1.4. Side note, what does "IOW" mean? |
It would also be very cool if the |
IOW means “in other words”. By “packaged” theme, I mean a theme installed by project A to be used by project B in a well-known location. Something the user should not touch (besides running whatever installer). If the user wants the theme selector to find a theme, just treat it as a packaged theme and put it in the good location. A symlink should work, so you can keep the real file in |
While I agree that the script should honuor XDG_CONFIG_HOME, this needs some updates. First of all, the if..else is not needed. Use |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When
XDG_CONFIG_HOME
is set and you userofi-theme-selector
, the new theme is config is stored in${HOME}/.config/rofi/config.rassi
butrofi
reads from${XDG_CONFIG_HOME}/rofi/config.rasi
This PR saves the config in the correct location.