amtoine / scripts

A collection of scripts for my daily use on ArchLinux.
GNU General Public License v3.0
4 stars 0 forks source link

There is no proper theme switcher #15

Open amtoine opened 2 years ago

amtoine commented 2 years ago

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

The idea for now is to:

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:

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 commented 2 years ago

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

amtoine commented 2 years ago

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 :ok_hand:

amtoine commented 2 years ago

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 :yum:

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