update theme

This commit is contained in:
Dmitriy Kholkin 2022-10-21 14:08:45 +03:00
parent 8d4a4e5c20
commit bc9e736689
12 changed files with 1782 additions and 117 deletions

View File

@ -15,19 +15,19 @@ with config.deviceSpecific;
settings = { settings = {
font = { font = {
normal = { normal = {
family = "${thm.fonts.powerline.family}"; family = "${thm.fonts.mono.family}";
style = "Regular"; style = "Regular";
}; };
bold = { bold = {
family = "${thm.fonts.powerline.family}"; family = "${thm.fonts.mono.family}";
style = "Bold"; style = "Bold";
}; };
italic = { italic = {
family = "${thm.fonts.powerline.family}"; family = "${thm.fonts.mono.family}";
style = "Italic"; style = "Italic";
}; };
bold_italic = { bold_italic = {
family = "${thm.fonts.powerline.family}"; family = "${thm.fonts.mono.family}";
style = "Bold Italic"; style = "Bold Italic";
}; };
size = thm.fontSizes.small.int; size = thm.fontSizes.small.int;

View File

@ -10,7 +10,7 @@ in with config.deviceSpecific;
home-manager.users.alukard = { home-manager.users.alukard = {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
font.name = "${thm.fonts.powerline.family} ${thm.fontSizes.small.str}"; font.name = "${thm.fonts.mono.family} ${thm.fontSizes.small.str}";
# keybindings = '' # keybindings = ''
# ''; # '';
settings = { settings = {

View File

@ -34,9 +34,10 @@ in
userSettings = { userSettings = {
"update.mode" = "none"; "update.mode" = "none";
"telemetry.telemetryLevel" = "off"; "telemetry.telemetryLevel" = "off";
"editor.fontFamily" = "'Victor Mono', 'Fira Code', 'Font Awesome 5 Free', 'Font Awesome 5 Free Solid', 'Material Icons'"; #"editor.fontFamily" = "'Victor Mono Nerd Font', 'Fira Code', 'Font Awesome 5 Free', 'Font Awesome 5 Free Solid', 'Material Icons'";
"editor.fontFamily" = "'VictorMono Nerd Font Medium'";
"editor.fontLigatures" = true; "editor.fontLigatures" = true;
"editor.fontWeight" = "600"; #"editor.fontWeight" = "600";
"editor.fontSize" = 16; "editor.fontSize" = 16;
"workbench.iconTheme" = "eq-material-theme-icons-palenight"; "workbench.iconTheme" = "eq-material-theme-icons-palenight";
"workbench.colorTheme" = "Tokyo Night"; "workbench.colorTheme" = "Tokyo Night";
@ -79,7 +80,7 @@ in
"dart.debugSdkLibraries" = true; "dart.debugSdkLibraries" = true;
"dart.checkForSdkUpdates" = false; "dart.checkForSdkUpdates" = false;
"window.menuBarVisibility" = "toggle"; "window.menuBarVisibility" = "toggle";
"terminal.integrated.fontFamily" = "IBM Plex Mono"; "terminal.integrated.fontFamily" = "FiraCode Nerd Font";
"terminal.integrated.fontWeight" = "500"; "terminal.integrated.fontWeight" = "500";
"files.watcherExclude" = { "files.watcherExclude" = {
"**/.direnv" = true; "**/.direnv" = true;

View File

@ -23,12 +23,13 @@ with lib; {
bibata-cursors-tokyonight = pkgs.callPackage ./packages/bibata-cursors-tokyonight.nix { }; bibata-cursors-tokyonight = pkgs.callPackage ./packages/bibata-cursors-tokyonight.nix { };
ceserver = pkgs.callPackage ./packages/ceserver.nix { }; ceserver = pkgs.callPackage ./packages/ceserver.nix { };
hyprpaper = pkgs.callPackage ./packages/hyprpaper.nix { src = inputs.hyprpaper; }; hyprpaper = pkgs.callPackage ./packages/hyprpaper.nix { src = inputs.hyprpaper; };
# ibm-plex-powerline = pkgs.callPackage ./packages/ibm-plex-powerline.nix { };
kitti3 = pkgs.python3Packages.callPackage ./packages/kitti3.nix { }; kitti3 = pkgs.python3Packages.callPackage ./packages/kitti3.nix { };
microbin = pkgs.callPackage ./packages/microbin-pkg { }; microbin = pkgs.callPackage ./packages/microbin-pkg { };
mpris-ctl = pkgs.callPackage ./packages/mpris-ctl.nix { }; mpris-ctl = pkgs.callPackage ./packages/mpris-ctl.nix { };
parsec = pkgs.callPackage ./packages/parsec.nix { }; parsec = pkgs.callPackage ./packages/parsec.nix { };
reshade-shaders = pkgs.callPackage ./packages/reshade-shaders.nix { }; reshade-shaders = pkgs.callPackage ./packages/reshade-shaders.nix { };
rosepine-gtk-theme = pkgs.callPackage ./packages/rosepine-gtk-theme.nix { };
rosepine-icon-theme = pkgs.callPackage ./packages/rosepine-icon-theme.nix { };
seadrive-fuse = pkgs.callPackage ./packages/seadrive-fuse.nix { }; seadrive-fuse = pkgs.callPackage ./packages/seadrive-fuse.nix { };
tidal-dl = pkgs.callPackage ./packages/tidal-dl.nix { }; tidal-dl = pkgs.callPackage ./packages/tidal-dl.nix { };
tokyonight-gtk-theme = pkgs.callPackage ./packages/tokyonight-gtk-theme.nix { }; tokyonight-gtk-theme = pkgs.callPackage ./packages/tokyonight-gtk-theme.nix { };

View File

@ -1,38 +0,0 @@
{ python3Packages, python2, fetchFromGitHub, fetchzip }:
let
fontpatcher = python3Packages.buildPythonApplication rec {
name = "fontpatcher";
src = fetchFromGitHub {
owner = "powerline";
repo = "fontpatcher";
rev = "c3488091611757cb02014ed7ed2f11be0208da83";
sha256 = "1261h8233spflbbwbjz9w9bxcmznjldxwff08xn2cly6r9f49a0s";
};
propagatedBuildInputs = [
python2
python3Packages.fontforge
];
doCheck = false;
preFixup = ''
mkdir -p $out/fonts
cp fonts/* $out/fonts
'';
};
version = "6.0.0";
in fetchzip {
name = "ibm-plex-powerline-${version}";
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
postFetch = ''
mkdir -p $out/share/fonts/opentype
unzip -j $downloadedFile "OpenType/*/IBMPlexMono*.otf" -d $out/share/fonts/opentype
cd $out/share/fonts/opentype
${fontpatcher}/bin/powerline-fontpatcher $out/share/fonts/opentype/*
rm -f $out/share/fonts/opentype/IBMPlex*
'';
sha256 = "sha256-doBe3rNMrPjNG7zRGuCAV7w1iT49A7UROjtMapcjXUk=";
}

View File

@ -0,0 +1,43 @@
{ lib
, stdenv
, fetchFromGitHub
, gtk-engine-murrine
, jdupes
}:
stdenv.mkDerivation rec {
pname = "rosepine-gtk-theme";
version = "unstable-2022-09-03";
src = fetchFromGitHub {
owner = "Fausto-Korpsvart";
repo = "Rose-Pine-GTK-Theme";
rev = "1ffc697c6bed594c262647b0ec01e5f3de5a5e77";
sha256 = "1psdrf3hfq8h7lhz75j4780r5p9l6cjmsrpfwhk4yyi4hbyk1n9c";
};
nativeBuildInputs = [ jdupes ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes
cp -a themes/Rosepine* $out/share/themes
# Replace duplicate files with hardlinks to the first file in each
# set of duplicates, reducing the installed size
jdupes -L -r $out/share
runHook postInstall
'';
meta = with lib; {
description = "A GTK theme with the Rosé Pine colour palette";
homepage = "https://github.com/Fausto-Korpsvart/Rose-Pine-GTK-Theme";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = [ ];
};
}

View File

@ -0,0 +1,43 @@
{ lib
, stdenv
, fetchFromGitHub
, gtk-engine-murrine
, jdupes
}:
stdenv.mkDerivation rec {
pname = "rosepine-icon-theme";
version = "unstable-2022-09-03";
src = fetchFromGitHub {
owner = "Fausto-Korpsvart";
repo = "Rose-Pine-GTK-Theme";
rev = "1ffc697c6bed594c262647b0ec01e5f3de5a5e77";
sha256 = "1psdrf3hfq8h7lhz75j4780r5p9l6cjmsrpfwhk4yyi4hbyk1n9c";
};
nativeBuildInputs = [ jdupes ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -a icons/Rose-Pine* $out/share/icons
# Replace duplicate files with hardlinks to the first file in each
# set of duplicates, reducing the installed size
jdupes -L -r $out/share
runHook postInstall
'';
meta = with lib; {
description = "A GTK theme with the Rosé Pine colour palette";
homepage = "https://github.com/Fausto-Korpsvart/Rose-Pine-GTK-Theme";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = [ ];
};
}

View File

@ -2,12 +2,12 @@
config.themes.base16 = with config.deviceSpecific.devInfo; { config.themes.base16 = with config.deviceSpecific.devInfo; {
enable = true; enable = true;
customScheme = { # customScheme = {
enable = true; # enable = true;
path = "${inputs.base16-tokyonight-scheme}/tokyonight-night.yaml"; # path = "${inputs.base16-tokyonight-scheme}/tokyonight-night.yaml";
}; # };
# scheme = "gruvbox"; scheme = "rose-pine";
# variant = "gruvbox-dark-medium"; variant = "rose-pine";
extraParams = { extraParams = {
fonts = { fonts = {
main = { main = {
@ -19,11 +19,7 @@
size = 12; size = 12;
}; };
mono = { mono = {
family = "IBM Plex Mono"; family = "VictorMono Nerd Mono";
size = 12;
};
powerline = {
family = "IBM Plex Mono";
size = 12; size = 12;
}; };
icon = { icon = {
@ -63,10 +59,10 @@
}; };
}; };
# iconTheme = "Papirus-Dark"; # iconTheme = "tokyonight_dark";
# iconPackage = pkgs.papirus-icon-theme; # iconPackage = pkgs.tokyonight-icon-theme;
iconTheme = "tokyonight_dark"; iconTheme = "Rose-Pine";
iconPackage = pkgs.tokyonight-icon-theme; iconPackage = pkgs.rosepine-icon-theme;
cursorPackage = pkgs.bibata-cursors-tokyonight; cursorPackage = pkgs.bibata-cursors-tokyonight;
# cursorPackage = pkgs.bibata-cursors; # cursorPackage = pkgs.bibata-cursors;

View File

@ -6,11 +6,8 @@ in
fonts = { fonts = {
fonts = with pkgs; [ fonts = with pkgs; [
ibm-plex ibm-plex
# ibm-plex-powerline (nerdfonts.override { fonts = [ "FiraCode" "VictorMono" ]; })
fira-code fira-code
roboto
roboto-mono
roboto-slab
victor-mono victor-mono
# Icons # Icons
font-awesome font-awesome

View File

@ -41,20 +41,20 @@ in {
name = "${thm.iconTheme}"; name = "${thm.iconTheme}";
package = thm.iconPackage; package = thm.iconPackage;
}; };
theme = {
name = "Generated";
package = pkgs.generated-gtk-theme;
};
# theme = { # theme = {
# name = "Tokyonight-Dark-BL"; # name = "Generated";
# package = pkgs.tokyonight-gtk-theme; # package = pkgs.generated-gtk-theme;
# }; # };
theme = {
name = "Rosepine-BL";
package = pkgs.rosepine-gtk-theme;
};
font = { font = {
name = "${thm.fonts.main.family}"; name = "${thm.fonts.main.family}";
size = thm.fontSizes.normal.int; size = thm.fontSizes.normal.int;
}; };
}; };
home.sessionVariables.GTK_THEME = "Generated"; # home.sessionVariables.GTK_THEME = "Generated";
# home.sessionVariables.GTK_THEME = "Tokyonight-Dark-BL"; home.sessionVariables.GTK_THEME = "Rosepine-BL";
}; };
} }

View File

@ -7,7 +7,7 @@
programs = { programs = {
zsh = { zsh = {
enable = true; enable = true;
enableAutosuggestions = true; # enableAutosuggestions = true;
enableCompletion = true; enableCompletion = true;
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
@ -15,11 +15,11 @@
plugins = [ "git" "dirhistory" ]; plugins = [ "git" "dirhistory" ];
}; };
plugins = [ plugins = [
# { {
# name = "zsh-nix-shell"; name = "zsh-nix-shell";
# file = "nix-shell.plugin.zsh"; file = "nix-shell.plugin.zsh";
# src = inputs.zsh-nix-shell; src = inputs.zsh-nix-shell;
# } }
{ {
name = "zsh-autosuggestions"; name = "zsh-autosuggestions";
src = inputs.zsh-autosuggestions; src = inputs.zsh-autosuggestions;
@ -28,6 +28,16 @@
name = "you-should-use"; name = "you-should-use";
src = inputs.zsh-you-should-use; src = inputs.zsh-you-should-use;
} }
{
name = "powerlevel10k-config";
src = ./.;
file = "p10k.zsh";
}
{
name = "zsh-powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
]; ];
dotDir = ".config/zsh"; dotDir = ".config/zsh";
@ -53,47 +63,19 @@
"nb" = "nix build"; "nb" = "nix build";
"nr" = "nix run"; "nr" = "nix run";
"e" = "$EDITOR"; "e" = "$EDITOR";
"q" = "qalc"; "q" = "${pkgs.libqalculate}/bin/qalc";
# "grep" = "${pkgs.ripgrep}/bin/rg"; # "grep" = "${pkgs.ripgrep}/bin/rg";
"man" = "${pkgs.pinfo}/bin/pinfo"; "man" = "${pkgs.pinfo}/bin/pinfo";
"l" = "exa -lahgF@ --git --group-directories-first"; "l" = "${pkgs.exa}/bin/exa -lahgF@ --git --group-directories-first";
"tree" = "exa -T"; "tree" = "${pkgs.exa}/bin/exa -T";
"ltree" = "exa -lhgFT@ --git"; "ltree" = "${pkgs.exa}/bin/exa -lhgFT@ --git";
"atree" = "exa -aT"; "atree" = "${pkgs.exa}/bin/exa -aT";
"latree" = "exa -lahgFT@ --git"; "latree" = "${pkgs.exa}/bin/exa -lahgFT@ --git";
# "gif2webm" = "(){ ${pkgs.ffmpeg.bin}/bin/ffmpeg -i $1 -c:v libvpx-vp9 -crf 20 -b:v 0 $1.webm ;}"; # "gif2webm" = "(){ ${pkgs.ffmpeg.bin}/bin/ffmpeg -i $1 -c:v libvpx-vp9 -crf 20 -b:v 0 $1.webm ;}";
"hpc" = "bluetoothctl connect D8:37:3B:60:5D:55"; "hpc" = "bluetoothctl connect D8:37:3B:60:5D:55";
"hpd" = "bluetoothctl disconnect D8:37:3B:60:5D:55"; "hpd" = "bluetoothctl disconnect D8:37:3B:60:5D:55";
}; };
initExtra = '' initExtra = ''
nixify() {
if [ ! -e ./.envrc ]; then
echo 'use flake' > .envrc
direnv allow
fi
if [ ! -e flake.nix ]; then
cat > flake.nix <<'EOF'
{
description = "shell environment";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-unstable;
};
outputs = { self, nixpkgs, ... }@inputs: {
devShell.x86_64-linux = let
pkgs = import nixpkgs { config.allowUnfree = true; localSystem = "x86_64-linux"; };
in pkgs.mkShell {
nativeBuildInputs = [ ];
buildInputs = with pkgs; [ ];
shellHook = "";
};
};
}
EOF
fi
}
rga-fzf() { rga-fzf() {
RG_PREFIX="rga --files-with-matches" RG_PREFIX="rga --files-with-matches"
local file local file
@ -113,9 +95,8 @@
XDG_DATA_DIRS=$XDG_DATA_DIRS:$GSETTINGS_SCHEMAS_PATH XDG_DATA_DIRS=$XDG_DATA_DIRS:$GSETTINGS_SCHEMAS_PATH
source ${pkgs.nix-zsh-completions}/share/zsh/plugins/nix/nix-zsh-completions.plugin.zsh PS1="$PS1
fpath=(${pkgs.nix-zsh-completions}/share/zsh/site-functions $fpath) $ "
autoload -U compinit && compinit
''; '';
}; };

File diff suppressed because it is too large Load Diff