Skip to content

There is no proper theme switcher #15

@amtoine

Description

@amtoine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions