morhetz / gruvbox-contrib

Ports of the gruvbox colorscheme
1.65k stars 362 forks source link

Setting wsl theme to gruvbox dark #106

Open Nishant-Pall opened 3 years ago

Nishant-Pall commented 3 years ago

I've been using fish shell in ubuntu 20.04 wsl and I've been looking to add the gruvbox theme, and I can't find any way to do so, please help me out here as I'm a newbie to changing config files and stuff.

bendoin commented 3 years ago

You have to set the color theme for the Windows Terminal itself https://docs.microsoft.com/en-us/windows/terminal/customize-settings/color-schemes instead of fish.

I used this file https://github.com/russdb/gruvbox-windows-terminal/blob/master/gruvbox_dark to get the color values.

bukzor commented 2 years ago

The linked version doesn't set foreground/background correctly, and neglects cursor and selected-background entirely. Here's my improvement:

        {
            "name": "Gruvbox Dark",
            "background": "#282828",
            "selectionBackground": "#7C6F64",
            "foreground": "#FBF1C7",
            "cursorColor": "#7C6F64",

            "black": "#282828",
            "blue": "#458588",
            "brightBlack": "#928374",
            "brightBlue": "#83A598",
            "brightCyan": "#8EC07C",
            "brightGreen": "#B8BB26",
            "brightPurple": "#D3869B",
            "brightRed": "#FB4934",
            "brightWhite": "#EBDBB2",
            "brightYellow": "#FABD2F",
            "cyan": "#689D6A",
            "green": "#98971A",
            "purple": "#B16286",
            "red": "#CC241D",
            "white": "#A89984",
            "yellow": "#D79921"
        },