Coder Social home page Coder Social logo

the-spanish-guy / decritty Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 0.0 7.55 MB

CLI program to change the alacritty configuration

License: MIT License

JavaScript 0.30% TypeScript 99.70%
alacritty node alacritty-theme alacritty-config alacritty-theme-changer customization alacritty-colorscheme alacritty-theme-switcher

decritty's Introduction

Decritty

Inspired on pycritty

imagem

Change your alacritty config in real time!


Table of Contents


πŸ”§ Installation

  • npm

    npm i -g decritty

πŸ•ΆοΈ Usage

Initial configs

Run the command below to create the initial settings

If the alacritty folder is already exists, it will be backup and the folder structure will be set up to work correctly

decritty -i

Opacity

This argument receive a int | float

decritty -o 0.6

Padding

This argument receives 2 parameters x, y of type int
X and Y need not be exactly the same

decritty -p 2 2

---

decritty -p 4 8

Font

This argument receives the alias that is in the font file

You may be found the file on ~/.config/alacritty/settings/fonts.yml
click here to see structure of fonts file

decritty -f FiraCode

Add new font

This argument receives two parameters Alias: 'Font Name'
Alias is the alias of the font name
'Font Name' is the original font name

You may be found the file on ~/.config/alacritty/settings/fonts.yml

decritty --add-font FiraCode 'Fira Code Nerd Font'

# abbreviated command
decritty -af FiraCode 'Fira Code Nerd Font'

Font Size

This argument receive a int

decritty -s 18

Themes

This argument receive the name of theme

You may be found the file folder on ~/.config/alacritty/settings/themes
click here to see folder structure

decritty -t AyuDark

imagem

If you wish, you can match all the arguments

imagem

Add Themes

To add a new theme just move it to ~/.config/alacritty/settings/themes and then run

decritty -t YourTheme

List Resources

To list all resources

decritty --list-resources

# abbreviated command
decritty -l

Set Shell

To set a new shell

decritty --set-shell zsh

## abbreviated command
decritty -ss zsh

Window Decoration

To change window decoration of Alacritty

You can set these options "full" | "none" | "transparent" | "buttonless"
Remember, the options "transparent" | "buttonless" only works in macos

decritty --window-decoration full

## abbreviated command
decritty -wd none

πŸ“ Folder Structure

alacritty
β”‚   alacritty.yml
β”‚
β”‚
└───settings
β”‚   β”‚   fonts.yml
β”‚   β”‚
β”‚   β”‚
β”‚   └───themes
β”‚       β”‚   AyuDark.yml
β”‚       β”‚   AyuMirage.yml
β”‚       β”‚   ...

πŸ“ Fonts

~/.config/alacritty/settings/fonts.yml

fonts:
  Ubuntu: UbuntuMono Nerd Font # alias: font name
  FiraCode: Fira Code Nerd Font

✍️ License

This project is under the MIT LICENSE. See LICENSE for more information.


Made by the spanish guy with πŸ’œ

decritty's People

Contributors

the-spanish-guy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.