From 691e161926912b7408dfc328712d892515af07b1 Mon Sep 17 00:00:00 2001 From: Rosa Date: Wed, 14 Jan 2026 14:49:34 -0500 Subject: format code --- user/home/kakoune/colors/nord.kak | 112 +++++++++++++++++++++++++++++++++ user/home/kakoune/colors/rose-pine.kak | 76 ++++++++++++++++++++++ user/home/kakoune/default.nix | 5 +- user/home/kakoune/rose-pine.kak | 76 ---------------------- user/home/vencord/default.nix | 2 +- 5 files changed, 193 insertions(+), 78 deletions(-) create mode 100644 user/home/kakoune/colors/nord.kak create mode 100644 user/home/kakoune/colors/rose-pine.kak delete mode 100644 user/home/kakoune/rose-pine.kak (limited to 'user') diff --git a/user/home/kakoune/colors/nord.kak b/user/home/kakoune/colors/nord.kak new file mode 100644 index 0000000..55bcf52 --- /dev/null +++ b/user/home/kakoune/colors/nord.kak @@ -0,0 +1,112 @@ +# Nord Theme +# https://www.nordtheme.com/docs/colors-and-palettes + +evaluate-commands %sh{ + # Polar Night (black) + nord0="rgb:2e3440" + nord1="rgb:3b4252" + nord2="rgb:434c5e" + nord3="rgb:4c566a" + nord3_bright="rgb:616e88" + # Snow Storm (white) + nord4="rgb:d8dee9" + nord5="rgb:e5e9f0" + nord6="rgb:eceff4" + # Frost (blue/green) + nord7="rgb:8fbcbb" + nord8="rgb:88c0d0" + nord9="rgb:81a1c1" + nord10="rgb:5e81ac" + # Aurora + nord11="rgb:bf616a" # red + nord12="rgb:d08770" # orange + nord13="rgb:ebcb8b" # yellow + nord14="rgb:a3be8c" # green + nord15="rgb:b48ead" # purple + + # Code highlighting + echo " + face global variable ${nord4} + face global Default ${nord5},${nord0} + face global builtin ${nord6}+b + face global type ${nord7} + face global function ${nord8} + face global keyword ${nord9} + face global meta ${nord9} + face global attribute ${nord12} + face global module ${nord13} + face global string ${nord14} + face global value ${nord15} + " + + # comments are brighter since they're hard to see against the cursorline + echo "face global comment ${nord3_bright}+i" + + # cursor/selection text is always black + # backgrounds use Snow Storm for the primary cursor + # and Frost for secondary elements + echo " + face global PrimaryCursor ${nord0},${nord4}+Bfg + face global PrimarySelection ${nord0},${nord8}+g + face global SecondaryCursor ${nord0},${nord9}+fg + face global SecondarySelection ${nord0},${nord10}+g + " + + # current line's number is white and matches the cursorline + # other line's numbers are grey like comments + echo " + face global LineNumbers ${nord3_bright}+b + face global LineNumberCursor ${nord4},${nord2}+b + " + + # marks a soft-wrap in yellow + echo "face global LineNumbersWrapped ${nord13},${nord1}" + echo "face global WrapMarker ${nord13}+f" + + + # selected element in menus + echo "face global MenuForeground ${nord0},${nord8}+b" + + # non-selected element(s) in menus + echo "face global MenuBackground default,${nord1}" + + # additional info in menus, like autocompletion source + echo "face global MenuInfo default+iu" + + + # bottom status line / prompt + # not used much since we have powerline + echo "face global StatusLine ${nord4},${nord1}" + # tells you what mode you're using (besides normal) + echo "face global StatusLineMode ${nord0},${nord7}+b" + # special info + echo "face global StatusLineInfo ${nord4}+b" + # special values + echo "face global StatusLineValue ${nord8}+i" + + echo "face global StatusCursor ${nord0},${nord4}" + echo "face global Prompt default" + echo "face global Whitespace ${nord10},${nord1}+f" + + # not really sure what this line does... + echo "face global MatchingChar blue,red+F" + + # extra padding at the end of a buffer (file) + echo "face global BufferPadding default,${nord3}" + + # general information, like Clippy + echo "face global Information default,${nord1}" + echo "face global Error ${nord4},${nord11}" + + # Markup + echo "face global title ${nord8},${nord1}+b" + echo "face global header ${nord7},${nord1}+b" + echo "face global bold default,default+ba" + echo "face global mono ${nord10}" + echo "face global block ${nord13}" + echo "face global Italic default,default+ia" + echo "face global Underline default,default+ufa" + echo "face global link ${nord8}+u" + echo "face global bullet ${nord12}" + echo "face global list ${nord14}" +} diff --git a/user/home/kakoune/colors/rose-pine.kak b/user/home/kakoune/colors/rose-pine.kak new file mode 100644 index 0000000..0c96095 --- /dev/null +++ b/user/home/kakoune/colors/rose-pine.kak @@ -0,0 +1,76 @@ +evaluate-commands %sh{ + +base=rgb:191724 +surface=rgb:1f1d2e +overlay=rgb:26233a +inactive=rgb:555169 +subtle=rgb:6e6a86 +text=rgb:e0def4 +love=rgb:eb6f92 +gold=rgb:f6c177 +rose=rgb:ebbcba +pine=rgb:31748f +foam=rgb:9ccfd8 +iris=rgb:c4a7e7 +highlight=rgb:2a2837 +highlightInactive=rgb:211f2d +highlightOverlay=rgb:3a384a + + +## code +echo " + face global value ${iris} + face global type ${iris} + face global identifier ${subtle} + face global string ${gold} + face global keyword ${pine} + face global operator default + face global attribute ${foam} + face global comment ${subtle}+i + face global meta ${foam} + face global builtin ${pine} + + face global variable ${rose} + face global module ${foam} + face global function ${foam} +" + +## markup +echo " + face global title ${rose}+b + face global header ${rose} + face global bold default + face global italic default + face global mono ${rose} + face global block ${pine} + face global link ${love} + face global bullet ${rose} + face global list ${rose} +" + +## builtin +echo " + face global Default ${text},${base} + face global PrimarySelection default,${highlight} + face global SecondarySelection default,${highlightInactive} + face global PrimaryCursor ${base},${text} + face global SecondaryCursor default,${inactive} + face global LineNumbers ${subtle},${base} + face global LineNumberCursor ${gold},${base} + face global MenuForeground ${text},${overlay} + face global MenuBackground ${subtle},${surface} + face global MenuInfo ${inactive} + face global Information ${text},${overlay} + face global Error ${base},${love} + face global StatusLine ${text},${surface} + face global StatusLineMode ${rose} + face global StatusLineInfo ${foam} + face global StatusLineValue ${pine} + face global StatusCursor ${base},${text} + face global Prompt ${foam},${surface} + face global MatchingChar default+u + face global BufferPadding ${inactive},${base} + face global Whitespace ${inactive}+f +" + +} diff --git a/user/home/kakoune/default.nix b/user/home/kakoune/default.nix index f5dea88..54c3f0f 100644 --- a/user/home/kakoune/default.nix +++ b/user/home/kakoune/default.nix @@ -67,5 +67,8 @@ ]; }; - xdg.configFile."kak/colors/rose-pine.kak".source = ./rose-pine.kak; + xdg.configFile."kak/colors" = { + recursive = true; + source = ./colors; + }; } diff --git a/user/home/kakoune/rose-pine.kak b/user/home/kakoune/rose-pine.kak deleted file mode 100644 index 0c96095..0000000 --- a/user/home/kakoune/rose-pine.kak +++ /dev/null @@ -1,76 +0,0 @@ -evaluate-commands %sh{ - -base=rgb:191724 -surface=rgb:1f1d2e -overlay=rgb:26233a -inactive=rgb:555169 -subtle=rgb:6e6a86 -text=rgb:e0def4 -love=rgb:eb6f92 -gold=rgb:f6c177 -rose=rgb:ebbcba -pine=rgb:31748f -foam=rgb:9ccfd8 -iris=rgb:c4a7e7 -highlight=rgb:2a2837 -highlightInactive=rgb:211f2d -highlightOverlay=rgb:3a384a - - -## code -echo " - face global value ${iris} - face global type ${iris} - face global identifier ${subtle} - face global string ${gold} - face global keyword ${pine} - face global operator default - face global attribute ${foam} - face global comment ${subtle}+i - face global meta ${foam} - face global builtin ${pine} - - face global variable ${rose} - face global module ${foam} - face global function ${foam} -" - -## markup -echo " - face global title ${rose}+b - face global header ${rose} - face global bold default - face global italic default - face global mono ${rose} - face global block ${pine} - face global link ${love} - face global bullet ${rose} - face global list ${rose} -" - -## builtin -echo " - face global Default ${text},${base} - face global PrimarySelection default,${highlight} - face global SecondarySelection default,${highlightInactive} - face global PrimaryCursor ${base},${text} - face global SecondaryCursor default,${inactive} - face global LineNumbers ${subtle},${base} - face global LineNumberCursor ${gold},${base} - face global MenuForeground ${text},${overlay} - face global MenuBackground ${subtle},${surface} - face global MenuInfo ${inactive} - face global Information ${text},${overlay} - face global Error ${base},${love} - face global StatusLine ${text},${surface} - face global StatusLineMode ${rose} - face global StatusLineInfo ${foam} - face global StatusLineValue ${pine} - face global StatusCursor ${base},${text} - face global Prompt ${foam},${surface} - face global MatchingChar default+u - face global BufferPadding ${inactive},${base} - face global Whitespace ${inactive}+f -" - -} diff --git a/user/home/vencord/default.nix b/user/home/vencord/default.nix index d6e98a5..b96d4b1 100644 --- a/user/home/vencord/default.nix +++ b/user/home/vencord/default.nix @@ -8,7 +8,7 @@ }; settings = { - enabledThemes = []; + enabledThemes = [ ]; plugins = { AlwaysExpandRoles.enabled = true; MessageLogger.enabled = true; -- cgit v1.3.1