0nyr / dotfiles

A collection of linux configuration files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Personal dotfiles

Here, you can find many of my linux config files I wish to reuse on different machines.

Useful links

r/unixporn

First time gitifying .config

We can't use git clone since the directory is not empty.

  1. cd ~/.config
  2. git init then git add <what you want to add> and git commit -m "Initial commit.".
  3. Create a repository on GitHub called dotfiles, then git remote add origin <github-repo>.
  4. Make sure current branch is called main. You can use git branch -m main to rename master to main.
  5. Set tracking information for current branch main with git branch --set-upstream-to=origin/main main.
  6. git pull.

Clone inside .config

  1. Inside /home, git clone the dotfiles repository from GitHub: git clone git@github.com:0nyr/dotfiles.git
  2. Copy all already created dotfiles and dotfolders from the old .config/ to dotfiles/ with cp -r .config/* dotfiles/.
  3. Remove the old .config/ with rm -rf .config/.
  4. Rename dotfiles/ to .config/ with mv dotfiles/ .config.
  5. Now, you should have merged the online dotfiles with the already created .config.

🌱Programs

Fonts

Install fonts from Nerd Fonts

Download the fonts you want, for instance JetBrainsMono, unzip JetBrainsMono.zip, then mv *.ttf ~/.fonts/. Now, update the font cache with fc-cache -fv. You can check for installed fonts with fc-list | grep "SomeFontName".

Remember to use a terminal application that support well Nerd Fonts like Kitty.

$ fc-list | grep -i "JetBrains": list installed JetBrains fonts

Build own custom font

From StackOverflow

VScode does't allow to use different fonts for comments by default. But it's possible to set comment to be in italic.

"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "scope": "comment",
            "settings": {
                "fontStyle": "italic"
            }
        }
    ]
}

Knowing this, the trick is to combine the two fonts you want to use with a tool like FontForge and then set this font into VSCode

"editor.fontFamily": "'CustomJetBrainsMonoNFFantasqueSansMNF', monospace",
    "editor.fontLigatures": true,

This font is a combination of 2 Nerd fonts WITH ligatures: FantasqueSansM Nerd Font for the italic font, and JetBrainsMono Nerd Font for the regular font.

You can find my custom fonts inside custom_fonts/.

You can install this font by copying the .ttf files to ~/.fonts/ and, update the font cache with fc-cache -fv. Make sure to close all open instances of VSCode for the font reload to be applied.

My VSCode using CustomJetBrainsMonoNFFantasqueSansMNF:

vscode screenshot

You can find my VSCode User settings.json here.

⭐️ Credits

About

A collection of linux configuration files.


Languages

Language:Shell 49.4%Language:CSS 22.8%Language:Python 18.2%Language:HTML 9.6%