GithubHelp home page GithubHelp logo

sterpe / alacritty-colorscheme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from toggle-corp/alacritty-colorscheme

0.0 1.0 0.0 10 KB

Change colorscheme of alacritty with ease.

License: Apache License 2.0

Python 100.00%

alacritty-colorscheme's Introduction

Alacritty Colorscheme

Change colorscheme of alacritty with ease.

Usage

To identify the color section in alacritty config, the program uses two markers: # color_start and # color_end The markers should be placed before the color section and after the color section by the user.

Example:

# color_start
colors:
    # Default colors
    primary:
        background: '0x1e2127'
        foreground: '0xabb2bf'

    # Normal colors
    ...

    # Bright colors
    ...

# color_end

Usage

$ alacritty-colorscheme --help
usage: alacritty-colorscheme [-h]
                             (-s | -l | -a colorscheme | -t colorschemes [colorschemes ...] | -T)
                             [-c configuration file]
                             [-C colorscheme directory]
Change colorscheme of alacritty with ease.
optional arguments:
  -h, --help            show this help message and exit
  -s, --show-applied    Show applied colorscheme
  -l, --list-available  List available colorschemes
  -a colorscheme, --apply colorscheme
                        Apply colorscheme
  -t colorschemes [colorschemes ...], --toggle colorschemes [colorschemes ...]
                        Toggle colorschemes
  -T, --toggle-available
                        Toggle all available colorschemes
  -c configuration file, --config-file configuration file
                        Path to configuration file
  -C colorscheme directory, --colorscheme-directory colorscheme directory
                        Path to colorscheme directory

Themes

You can get the themes from https://github.com/eendroroy/alacritty-theme

# Get themes
git clone https://github.com/eendroroy/alacritty-theme.git ~/alacritty-theme

# List available themes
alacritty-colorscheme -C ~/alacritty-theme/themes -l

# Toggle between the themes
alacritty-colorscheme -C ~/alacritty-theme/themes -T

Bindings for i3wm

# Set program location
set $alacritty_colorscheme ~/.bin/alacritty-colorscheme

# Toggle between light and dark colorscheme
bindsym $mod+Shift+n exec $alacritty_colorscheme -t solarized-light.yml solarized-dark.yml

# Toggle between all available colorscheme
bindsym $mod+Shift+m exec $alacritty_colorscheme -T

# Get notification with current colorscheme
bindsym $mod+Shift+b exec notify-send "Alacritty Colorscheme" `$alacritty_colorscheme -s`

License

Content of this repo is released under the [Apache License, Version 2.0].

Apache License, Version 2.0

alacritty-colorscheme's People

Contributors

tnagorra avatar

Watchers

 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.