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

There is no proper theme switcher #15

Open
amtoine opened this issue Jun 29, 2022 · 3 comments
Open

There is no proper theme switcher #15

amtoine opened this issue Jun 29, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@amtoine
Copy link
Owner

amtoine commented Jun 29, 2022

I would like to work on a proper script to change the themes of config files easily.

The idea for now is to:

  • make sure each color of the color palette is on its own line in the config files that need to have their color theme changed
  • add markers to isolate the color palette in the config file
  • use the extra meta data from the markers to replace the color palette

IDEA OF IMPLEMENTATION:

#+ BEGIN:color-theme
#+ format:{name} = '{color}'
#+ names:color_1,color_2,color_3
color_1 = '#74acdb'
color_2 = '#70a4ce'
color_3 = '#6c9dc1'
#+ END:color-theme

And then, once it is possible to change one file at a time, i would like to write a script that can:

  • read from a database of themes, e.g. kovidgoyal/kitty-themes
  • let the user explore the database of themes
  • ask the user what theme to apply...
  • and on which configuration files
  • apply the selected theme to the selected files
  • restart or recompile programs that need one or the other after changing a configuration file

IDEA OF IMPLEMENTATION:
i previously had a2n-s-themes which was supposed to do that, but it was flawed and not clean up to my standards... i want to abtract that new script(s) from this one.
also, i plan to use dmenu and rofi to have a graphical interaction and zenity to ask sudo passwords in a GUI

@amtoine amtoine added the enhancement New feature or request label Jun 29, 2022
@amtoine amtoine self-assigned this Jun 29, 2022
@amtoine
Copy link
Owner Author

amtoine commented Jul 6, 2022

Actually, after experimenting a bit, i will very likely split that into multiple PRs in the future.

@amtoine
Copy link
Owner Author

amtoine commented Jul 9, 2022

Now that i can apply basically any values to any hunk in any config file, see #16, i would like to have a script that can generate a theme from scratch for me 👌

@amtoine
Copy link
Owner Author

amtoine commented Jul 13, 2022

Now that i have a2n-s-compute-color-palette that can generate color themes in an easy way, i want to work on a central place to apply themes to all the configs at once 😋

see my first opening comment:

  • read from a database of themes, e.g. kovidgoyal/kitty-themes
  • let the user explore the database of themes
  • ask the user what theme to apply...
  • and on which configuration files
  • apply the selected theme to the selected files
  • restart or recompile programs that need one or the other after changing a configuration file

@amtoine amtoine removed their assignment Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant