From 9f6d2cda4ba1e1840d8f126086df9a801508de6a Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 13 Dec 2023 00:33:31 +0300 Subject: [PATCH] Add btop template --- README.md | 2 ++ flake.nix | 1 + templates/btopTheme.nix | 63 +++++++++++++++++++++++++++++++++++++++++ templates/tmTheme.nix | 4 +-- 4 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 templates/btopTheme.nix diff --git a/README.md b/README.md index 0491d15..73a9cd9 100644 --- a/README.md +++ b/README.md @@ -319,6 +319,7 @@ There are instructions on how to use these in the file they are located. Check ` ``` adwaitaGtkCss +btopTheme discordCss firefoxTheme ghosttyConfig @@ -399,6 +400,7 @@ Here is a minimal usage example: - Themes were taken from https://github.com/tinted-theming/base16-schemes. - The adwaitaGtkCss template was taken from https://github.com/danth/stylix/blob/master/modules/gtk/gtk.mustache. +- The btopTheme template was taken from https://github.com/dark-beep-boop/base16-bpytop. - The discordCss template was taken from https://gist.github.com/emctague/aab1d43a90174930939ae51c8db09553. - The tmTheme template was taken from https://github.com/chriskempson/base16-textmate/blob/master/templates/default.mustache. diff --git a/flake.nix b/flake.nix index 1238fb4..7243102 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,7 @@ }; in themeFull // { adwaitaGtkCss = (import ./templates/adwaitaGtkCss.nix) themeFull; + btopTheme = (import ./templates/btopTheme.nix) themeFull; discordCss = (import ./templates/discordCss.nix) themeFull; firefoxTheme = (import ./templates/firefoxTheme.nix) themeFull; ghosttyConfig = (import ./templates/ghosttyConfig.nix) themeFull; diff --git a/templates/btopTheme.nix b/templates/btopTheme.nix new file mode 100644 index 0000000..074ec39 --- /dev/null +++ b/templates/btopTheme.nix @@ -0,0 +1,63 @@ +# With Home Manager, do: +# +# xdg.configFile."btop/themes/base16.theme".text = theme.btopTheme; +# programs.btop.settings.color_theme = "base16"; +theme: with theme.withHashtag; '' +theme[main_bg]="" + +theme[main_fg]="${base05}" + +theme[title]="${base06}" + +theme[hi_fg]="${base0D}" + +theme[selected_bg]="${base01}" + +theme[selected_fg]="${base06}" + +theme[inactive_fg]="${base0E}" + +theme[proc_misc]="${base0B}" + +theme[cpu_box]="${base0E}" + +theme[mem_box]="${base0E}" + +theme[net_box]="${base0E}" + +theme[proc_box]="${base0E}" + +theme[div_line]="${base0E}" + +theme[temp_start]="${base0C}" +theme[temp_mid]="${base0A}" +theme[temp_end]="${base08}" + +theme[cpu_start]="${base0C}" +theme[cpu_mid]="${base0A}" +theme[cpu_end]="${base08}" + +theme[free_start]="${base08}" +theme[free_mid]="${base0A}" +theme[free_end]="${base0C}" + +theme[cached_start]="${base0C}" +theme[cached_mid]="${base0A}" +theme[cached_end]="${base08}" + +theme[available_start]="${base08}" +theme[available_mid]="${base0A}" +theme[available_end]="${base0C}" + +theme[used_start]="${base0C}" +theme[used_mid]="${base0A}" +theme[used_end]="${base08}" + +theme[download_start]="${base08}" +theme[download_mid]="${base0A}" +theme[download_end]="${base0C}" + +theme[upload_start]="${base08}" +theme[upload_mid]="${base0A}" +theme[upload_end]="${base0C}" +'' diff --git a/templates/tmTheme.nix b/templates/tmTheme.nix index 05c3ad7..0799640 100644 --- a/templates/tmTheme.nix +++ b/templates/tmTheme.nix @@ -4,9 +4,9 @@ theme: with theme.withHashtag; '' author - Template: Chris Kempson, Scheme: ${theme.author} + Template: Chris Kempson, Scheme: ${author} name - Base16 ${theme.name} + Base16 ${name} semanticClass theme.base16.generated colorSpaceName