Chameleon icon indicating copy to clipboard operation
Chameleon copied to clipboard

More Theming

Open SingularisArt opened this issue 3 years ago • 3 comments

I created a folder that stores all of the scripts file that the main python program needs.

It basically just runs them and moves whatever output to the respectful configuration files.

I also created a file that initializes the config.yaml for you so you don't have to manually change the home path. It also comes with all of the default configurations needed.

I added support for theming:

  • alacritty
  • dunst
  • gnuplot
  • matplotlib
  • rofi
  • xfce4-terminal
  • xmenu
  • zathura
  • dwm

SingularisArt avatar Feb 11 '22 14:02 SingularisArt

Hey, just saw this PR and boy it's chunky! I'll have to take a look at it, but I just wanted to say thanks for contributing!

I do have one initial question though. What exactly is the purpose of adding support for programs like alacritty? Personally I have my alacritty config simply do the following

# import the colors generated by pywal
import:
  - /home/gideon/.cache/wal/alacrittycolors.yml

This points to the file that gets autogenerated when pywal sees that I have the following contents in a template.

colors:
  # Default colors
  primary:
    background: '{background}'
    foreground: '{foreground}'

    dim_foreground:    '{color8}'
    bright_foreground: '{color12}'
    dim_background:    '{color8}' # not sure
    bright_background: '{background}' # not sure

  # Cursor colors
  # cursor:
    # text:   '{foreground}'
    # cursor: '{background}'

  # Normal colors
  normal:
    black:   '{color0}'
    red:     '{color1}'
    green:   '{color2}'
    yellow:  '{color3}'
    blue:    '{color4}'
    magenta: '{color5}'
    cyan:    '{color6}'
    white:   '{color7}'

  # Bright colors
  bright:
    black:   '{color8}'
    red:     '{color9}'
    green:   '{color10}'
    yellow:  '{color11}'
    blue:    '{color12}'
    magenta: '{color13}'
    cyan:    '{color14}'
    white:   '{color15}'

  # Dim colors
  dim:
    black:   '{color0}'
    red:     '{color1}'
    green:   '{color2}'
    yellow:  '{color3}'
    blue:    '{color4}'
    magenta: '{color5}'
    cyan:    '{color6}'
    white:   '{color7}'

The cached file is always updated by pywal and alacritty can always import it. No scripting necessary. I do the same thing with matplotlib, dunst, and really any other program that doesn't need manual intervention to theme, hence the purpose of Chameleon.

GideonWolfe avatar Feb 22 '22 17:02 GideonWolfe

I didn't know you could do that with alacrity. I started using alacrity, and it looked weird not configured like my other terminals. If you want, I could remove it from the scripts directory.

SingularisArt avatar Feb 22 '22 20:02 SingularisArt

Removed everything that is useless. I just added support for xfce4-terminal. Also, I created a script that will generate for you a basic config.yaml at ~/.config/chameleon/config.yaml.

SingularisArt avatar May 25 '22 14:05 SingularisArt