GithubHelp home page GithubHelp logo

dotfiles-alacritty's Introduction

Yet Another Alacritty Theme

This is a default theme I use across all of my machines, including my Acer Aspire 5749Z.

Dependencies

  • Alacritty (duh)
  • Iosevka Custom (Please check the FAQ because there's a catch!)
  • zsh & Oh My Zsh (for the arrows insead of [USER]@[HOST])

Potentially FAQ

Q: Why does my font not match the one in the demo?

Those may look like the regular Iosevka fonts, however Adi (Archcraft) edited them directly, instead of creating a separate TTF file:

fc-list | grep "Iosevka Custom"
/usr/share/fonts/iosevka/iosevka-regular.ttf: Iosevka Custom:style=Regular
/usr/share/fonts/iosevka/iosevka-oblique.ttf: Iosevka Custom,Iosevka Custom Oblique:style=Oblique,Regular
/usr/share/fonts/iosevka/iosevka-bold.ttf: Iosevka Custom:style=Bold
/usr/share/fonts/iosevka/iosevka-bolditalic.ttf: Iosevka Custom:style=Bold Italic
/usr/share/fonts/iosevka/iosevka-italic.ttf: Iosevka Custom:style=Italic
/usr/share/fonts/iosevka/iosevka-boldoblique.ttf: Iosevka Custom,Iosevka Custom Bold Oblique:style=Bold Oblique,Regular

I can't tell why he did that and I apologize for this odd configuration that will likely override existing Iosevka defaults. If you don't mind it, feel free to replace your defaults; if this messes the rest of your desktop up, you may want to choose a different font and edit fonts.toml. (Trust me, it frustrates me just as much and porting this config to a different machine only partially worked in one case.)

Q: Where are the arrows?

This is not set by any terminal emulator but by the shell (in this case zsh) itself. Oh My Zsh, the most popular framework for zsh, handles this and there are tons of themes you can choose from. Unfortunately, my config calls a custom theme called Archcraft, which came pre-installed with (you guessed it) Archcraft.

The theme can be copied and saved to ~/.oh-my-zsh/custom/themes/archcraft.zsh-theme:

# Default OMZ theme for Archcraft

if [[ "$USER" == "root" ]]; then
  PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[yellow]%}%{$fg_bold[red]%} :%{$fg_bold[red]%} )"
  PROMPT+='%{$fg[cyan]%}  %c%{$reset_color%} $(git_prompt_info)'
else
  PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )"
  PROMPT+='%{$fg[cyan]%}  %c%{$reset_color%} $(git_prompt_info)'
fi

ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}  git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

Then go to your ~/.zshrc and set ZSH_THEME (line 11) to "archcraft". Of course, the name of the theme is up to you and you're free to replace "Archcraft" with a different name and further customize it to your liking. You may want to also edit oh.my-zsh.sh to allow initialization of custom themes.

If you don't see arrows and instead just the usual unicode blocks, you're missing fonts able to render this Unicode character. If overriding your default Iosevka fonts with the customized set provided by this repo is not a choice for you, you may rely on the default .ttf files for the Iosevka font family or switch to Noto Sans. However, keep in mind that those fonts are vastly different from the customized Iosevka fonts and Noto Sans in particular may load with improper spacing for certain letters.

Q: Why does the demo screenshot show Xfce Terminal alongside Alacritty?

A: My Xfce Terminal uses the same color scheme but always relies on bright colors (colors.bright in Alacritty). It's just a demo of what bright colors look like in practice. (Also my Vim still is calling Xfce Terminal and I can't be bothered to change that.

Q: What's that toolbar / what WM are you using in the demo?

It's a customized Fluxbox. You can find the configuration here.

dotfiles-alacritty's People

Contributors

jatardine 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.