Git Product home page Git Product logo

Comments (8)

tnagorra avatar tnagorra commented on June 18, 2024

Maye you do not have a alacritty config file. Can you check if you have one?

from alacritty-colorscheme.

Weriel avatar Weriel commented on June 18, 2024

I do have one. It's under the path:
$HOME/.config/alacritty/alacritty.yml

from alacritty-colorscheme.

Weriel avatar Weriel commented on June 18, 2024

I fixed the problem. I had to manually add a theme in the alacritty.yml and after that the commands worked.

from alacritty-colorscheme.

exapsy avatar exapsy commented on June 18, 2024

I fixed the problem. I had to manually add a theme in the alacritty.yml and after that the commands worked.

How do you add a theme? How did you fix that exactly?

Neither of the documentations make this very clear. I think there is some room for improvement in that area.

Edit

Figured it out, but I had to do further search and found this site
https://draculatheme.com/alacritty
where the author suggested that you should add an import, like this

import:
  - /path/to/dracula.yml

But since the whole purpose of this repository is to add/change themes, I dont think I should have entered to a completely irrelevant site to learn about this.

Can I contribute and add this extra but very important information?

from alacritty-colorscheme.

tnagorra avatar tnagorra commented on June 18, 2024

In the newer release, users do not need to add a "colors" section on alacritty config file.
The tool should be able to add a "colors" if there isn't one already defined.

Users do not need to add an import manually.

The only requirement is that there should already be a user editable config file.
Could you share the alacritty version you are using and the alacritty config?

P.S. Yes, contributions are encouraged and you can contribute by creating a fork and submitting a PR.

from alacritty-colorscheme.

dimasirfandanu avatar dimasirfandanu commented on June 18, 2024

I can still produce this error on my machine

❯ alacritty-colorscheme --version 
alacritty-colorscheme 1.0.1

No matter what arguments I pass except 'list'

❯ alacritty-colorscheme apply solarized_dark.yaml
Traceback (most recent call last):
  File "/home/dimasirfandanu/.local/bin/alacritty-colorscheme", line 8, in <module>
    sys.exit(main())
  File "/home/dimasirfandanu/.local/lib/python3.10/site-packages/alacritty_colorscheme/cli.py", line 158, in main
    handle_args(args)
  File "/home/dimasirfandanu/.local/lib/python3.10/site-packages/alacritty_colorscheme/cli.py", line 147, in handle_args
    replace_colorscheme(colors_path, args.config_file,
  File "/home/dimasirfandanu/.local/lib/python3.10/site-packages/alacritty_colorscheme/colorscheme.py", line 72, in replace_colorscheme
    config_yaml['colors'].update(colors_yaml['colors'])
TypeError: 'NoneType' object is not subscriptable

from alacritty-colorscheme.

nonogakhi avatar nonogakhi commented on June 18, 2024
alacritty-colorscheme apply solarized_dark.yaml

I have also the same exact problem

from alacritty-colorscheme.

tnagorra avatar tnagorra commented on June 18, 2024

This PR should fix the above issue as well #36

from alacritty-colorscheme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.