Update tokyonight colourscheme

Update from storm still being used in some places to night
Add to alacritty, set to use alacritty as main terminal
Add to xfce terminal as well, including transparency
This commit is contained in:
Evie Litherland-Smith 2023-07-03 16:09:48 +01:00
parent a47d51c709
commit 250fa6325f
7 changed files with 40 additions and 40 deletions

View file

@ -3,7 +3,7 @@
enable = true; enable = true;
keybindings = { keybindings = {
# Terminal emulators # Terminal emulators
"super + Return" = "wezterm"; "super + Return" = "alacritty";
"super + shift + Return" = "xfce4-terminal --drop-down"; "super + shift + Return" = "xfce4-terminal --drop-down";
# Launcher # Launcher

View file

@ -1,4 +1,4 @@
{...}: { {pkgs, ...}: {
imports = [ imports = [
./gtk.nix ./gtk.nix
./picom.nix ./picom.nix
@ -6,4 +6,22 @@
./polybar.nix ./polybar.nix
]; ];
xfconf.settings.xsettings."Gtk/MonospaceFontName" = "FiraCode Nerd Font 12"; xfconf.settings.xsettings."Gtk/MonospaceFontName" = "FiraCode Nerd Font 12";
xdg.configFile."xfce4/terminal/colorschemes/tokyonight_night".source =
pkgs.fetchFromGitHub {
owner = "folke";
repo = "tokyonight.nvim";
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
}
+ "/extras/xfceterm/tokyonight_night.theme";
xdg.configFile."xfce4/terminal/terminalrc".text = ''
[Configuration]
BackgroundMode=TERMINAL_BACKGROUND_TRANSPARENT
BackgroundDarkness=0.8
ColorForeground=#c0caf5
ColorBackground=#1a1b26
ColorSelection=#c0caf5
ColorSelectionBackground=#283457
ColorPalette=#15161e;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#a9b1d6;#414868;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#c0caf5
'';
} }

2
home/env/bat.nix vendored
View file

@ -12,7 +12,7 @@
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833"; rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ="; sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
} }
+ "/extras/sublime/tokyonight_storm.tmTheme"); + "/extras/sublime/tokyonight_night.tmTheme");
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
{ {
owner = "catppuccin"; owner = "catppuccin";

2
home/env/fish.nix vendored
View file

@ -12,7 +12,7 @@
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833"; rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ="; sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
} }
+ "/extras/fish/tokyonight_storm.fish"; + "/extras/fish/tokyonight_night.fish";
} }
]; ];
}; };

View file

@ -1,6 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [../env/bat.nix]; imports = [../env/bat.nix];
xdg.configFile."git/tokyonight_storm.gitconfig".source = xdg.configFile."git/tokyonight_night.gitconfig".source =
pkgs.fetchFromGitHub pkgs.fetchFromGitHub
{ {
owner = "folke"; owner = "folke";
@ -8,11 +8,11 @@
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833"; rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ="; sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
} }
+ "/extras/delta/tokyonight_storm.gitconfig"; + "/extras/delta/tokyonight_night.gitconfig";
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Evie Litherland-Smith"; userName = "Evie Litherland-Smith";
includes = [{path = "tokyonight_storm.gitconfig";}]; includes = [{path = "tokyonight_night.gitconfig";}];
delta = { delta = {
enable = true; enable = true;
options = { options = {

View file

@ -1,4 +1,4 @@
{...}: { {pkgs, ...}: {
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings = { settings = {
@ -6,37 +6,16 @@
normal.family = "FiraCode Nerd Font"; normal.family = "FiraCode Nerd Font";
size = 14; size = 14;
}; };
colors = { window.opacity = 0.8;
# Default colors import = [
primary = { (pkgs.fetchFromGitHub {
background = "0x1a1b26"; owner = "folke";
foreground = "0xa9b1d6"; repo = "tokyonight.nvim";
}; rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
# Normal colors }
normal = { + "/extras/alacritty/tokyonight_night.yml")
black = "0x32344a"; ];
red = "0xf7768e";
green = "0x9ece6a";
yellow = "0xe0af68";
blue = "0x7aa2f7";
magenta = "0xad8ee6";
cyan = "0x449dab";
white = "0x787c99";
};
# Bright colors
bright = {
black = "0x444b6a";
red = "0xff7a93";
green = "0xb9f27c";
yellow = "0xff9e64";
blue = "0x7da6ff";
magenta = "0xbb9af7";
cyan = "0x0db9d7";
white = "0xacb0d0";
};
};
}; };
}; };
} }

View file

@ -1,5 +1,8 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./firefox.nix ./wezterm.nix]; imports = [
./firefox.nix
./alacritty.nix
];
home.packages = with pkgs; [ home.packages = with pkgs; [
neovide neovide
bitwarden bitwarden