From 3d1ff7934a8955f008020084aedab313456d5f38 Mon Sep 17 00:00:00 2001 From: Michael Chalupiak Date: Sun, 23 Mar 2025 16:03:59 -0400 Subject: [PATCH] alacritty + nord --- config/.bashrc | 5 + config/.config/alacritty/alacritty.toml | 9 + config/.config/alacritty/alacritty.yml | 248 ++++++++++++++++++++++++ config/.config/alacritty/colors | 37 ++++ config/.config/alacritty/nord.toml | 58 ++++++ config/.config/alacritty/nord.yaml | 51 +++++ config/.config/kak/kakrc | 39 ++-- config/.config/qutebrowser/theme.py | 36 ++-- config/.theme.xresources | 36 ++-- config/.tmux.conf | 6 +- 10 files changed, 466 insertions(+), 59 deletions(-) create mode 100644 config/.config/alacritty/alacritty.toml create mode 100644 config/.config/alacritty/alacritty.yml create mode 100644 config/.config/alacritty/colors create mode 100644 config/.config/alacritty/nord.toml create mode 100644 config/.config/alacritty/nord.yaml diff --git a/config/.bashrc b/config/.bashrc index 539b9a7..7f4c2b2 100644 --- a/config/.bashrc +++ b/config/.bashrc @@ -195,3 +195,8 @@ alias csi='rlwrap csi' alias chicken-csi='rlwrap chicken-csi' alias icyc='rlwrap icyc' export DCONF_PROFILE +export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS' + --color=fg:#e5e9f0,bg:#3b4252,hl:#81a1c1 + --color=fg+:#e5e9f0,bg+:#3b4252,hl+:#81a1c1 + --color=info:#eacb8a,prompt:#bf6069,pointer:#b48dac + --color=marker:#a3be8b,spinner:#b48dac,header:#a3be8b' diff --git a/config/.config/alacritty/alacritty.toml b/config/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..513c312 --- /dev/null +++ b/config/.config/alacritty/alacritty.toml @@ -0,0 +1,9 @@ +[general] +import = ["nord.toml"] + +[font] +size = 14 + +[font.normal] +family = "Iosevka Term SS12" +style = "Regular" diff --git a/config/.config/alacritty/alacritty.yml b/config/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..1d1d0a4 --- /dev/null +++ b/config/.config/alacritty/alacritty.yml @@ -0,0 +1,248 @@ +font: + # normal: + # family: Cascadia Code + # style: Regular + # + # bold: + # family: Cascadia Code + # style: Bold + # + # italic: + # family: Cascadia Code + # style: Italic + # + # bold_italic: + # family: Cascadia Code + # style: Bold Italic + # + normal: + family: Olympe Mono Hacked + style: Regular + size: 12 + # shell: + # program: /bin/zsh + # args: + # - --login + # - -c + # - 'tmux attach -t TMUX || tmux new -s TMUX' +# ... + +# Colors (One Half Dark) +# colors: +# primary: +# background: '0x282c34' +# foreground: '0xdcdfe4' + +# normal: +# black: '0x282c34' +# red: '0xe06c75' +# green: '0x98c379' +# yellow: '0xe5c07b' +# blue: '0x61afef' +# magenta: '0xc678dd' +# cyan: '0x56b6c2' +# white: '0xdcdfe4' + +# bright: +# black: '0x282c34' +# red: '0xe06c75' +# green: '0x98c379' +# yellow: '0xe5c07b' +# blue: '0x61afef' +# magenta: '0xc678dd' +# cyan: '0x56b6c2' +# white: '0xdcdfe4' + + +# Colors (One Half Light) +#colors: +# primary: +# background: '0xfafafa' +# foreground: '0x383a42' +# +# normal: +# black: '0x383a42' +# red: '0xe45649' +# green: '0x50a14f' +# yellow: '0xc18401' +# blue: '0x0184bc' +# magenta: '0xa626a4' +# cyan: '0x0997b3' +# white: '0xfafafa' +# +# bright: +# black: '0x383a42' +# red: '0xe45649' +# green: '0x50a14f' +# yellow: '0xc18401' +# blue: '0x0184bc' +# magenta: '0xa626a4' +# cyan: '0x0997b3' +# white: '0xfafafa' + + +# Colors (Dracula) +#colors: +# primary: +# background: '0x282a36' +# foreground: '0xf8f8f2' +# cursor: +# text: CellBackground +# cursor: CellForeground +# vi_mode_cursor: +# text: CellBackground +# cursor: CellForeground +# search: +# matches: +# foreground: '0x44475a' +# background: '0x50fa7b' +# focused_match: +# foreground: '0x44475a' +# background: '0xffb86c' +# bar: +# background: '0x282a36' +# foreground: '0xf8f8f2' +# line_indicator: +# foreground: None +# background: None +# selection: +# text: CellForeground +# background: '0x44475a' +# normal: +# black: '0x000000' +# red: '0xff5555' +# green: '0x50fa7b' +# yellow: '0xf1fa8c' +# blue: '0xbd93f9' +# magenta: '0xff79c6' +# cyan: '0x8be9fd' +# white: '0xbfbfbf' +# bright: +# black: '0x4d4d4d' +# red: '0xff6e67' +# green: '0x5af78e' +# yellow: '0xf4f99d' +# blue: '0xcaa9fa' +# magenta: '0xff92d0' +# cyan: '0x9aedfe' +# white: '0xe6e6e6' +# dim: +# black: '0x14151b' +# red: '0xff2222' +# green: '0x1ef956' +# yellow: '0xebf85b' +# blue: '0x4d5b86' +# magenta: '0xff46b0' +# cyan: '0x59dffc' +# white: '0xe6e6d1' + + +# Colors (Nord) +#colors: +# primary: +# background: '#2e3440' +# foreground: '#d8dee9' +# dim_foreground: '#a5abb6' +# cursor: +# text: '#2e3440' +# cursor: '#d8dee9' +# vi_mode_cursor: +# text: '#2e3440' +# cursor: '#d8dee9' +# selection: +# text: CellForeground +# background: '#4c566a' +# search: +# matches: +# foreground: CellBackground +# background: '#88c0d0' +# bar: +# background: '#434c5e' +# foreground: '#d8dee9' +# normal: +# black: '#3b4252' +# red: '#bf616a' +# green: '#a3be8c' +# yellow: '#ebcb8b' +# blue: '#81a1c1' +# magenta: '#b48ead' +# cyan: '#88c0d0' +# white: '#e5e9f0' +# bright: +# black: '#4c566a' +# red: '#bf616a' +# green: '#a3be8c' +# yellow: '#ebcb8b' +# blue: '#81a1c1' +# magenta: '#b48ead' +# cyan: '#8fbcbb' +# white: '#eceff4' +# dim: +# black: '#373e4d' +# red: '#94545d' +# green: '#809575' +# yellow: '#b29e75' +# blue: '#68809a' +# magenta: '#8c738c' +# cyan: '#6d96a5' +# white: '#aeb3bb' + +# Visual Bell +# ... +#background_opacity: 0.90 +# Colors (Terminal.app) +# colors: +# # Default colors +# primary: +# background: '0x000000' +# foreground: '0xb6b6b6' +# +# # Normal colors +# normal: +# black: '0x000000' +# red: '0x990000' +# green: '0x00a600' +# yellow: '0x999900' +# blue: '0x0000b2' +# magenta: '0xb200b2' +# cyan: '0x00a6b2' +# white: '0xbfbfbf' +# +# # Bright colors +# bright: +# black: '0x666666' +# red: '0xe50000' +# green: '0x00d900' +# yellow: '0xe5e500' +# blue: '0x0000ff' +# magenta: '0xe500e5' +# cyan: '0x00e5e5' +# white: '0xe5e5e5' +# Gnome (Gnome Terminal Default) +colors: + # Default colors + primary: + background: '0x1e1e1e' + foreground: '0xffffff' + + # Normal colors + normal: + black: '0x171421' + red: '0xc01c28' + green: '0x26a269' + yellow: '0xa2734c' + blue: '0x12488b' + magenta: '0xa347ba' + cyan: '0x2aa1b3' + white: '0xd0cfcc' + + # Bright colors + bright: + black: '0x535c64' + red: '0xf66151' + green: '0x33d17a' + yellow: '0xe9ad0c' + blue: '0x2a7bde' + magenta: '0xc061cb' + cyan: '0x33c7de' + white: '0xffffff' diff --git a/config/.config/alacritty/colors b/config/.config/alacritty/colors new file mode 100644 index 0000000..eeadf13 --- /dev/null +++ b/config/.config/alacritty/colors @@ -0,0 +1,37 @@ +# Base16 Nord - alacritty color config +# arcticicestudio + +[colors] +draw_bold_text_with_bright_colors = false + +# Default colors +[colors.primary] +background = '0x2e3440' +foreground = '0xe5e9f0' + +# Colors the cursor will use if `custom_cursor_colors` is true +[colors.cursor] +text = '0x2e3440' +cursor = '0xe5e9f0' + +# Normal colors +[colors.normal] +black = '0x2e3440' +red = '0xbf616a' +green = '0xa3be8c' +yellow = '0xebcb8b' +blue = '0x81a1c1' +magenta = '0xb48ead' +cyan = '0x88c0d0' +white = '0xe5e9f0' + +# Bright colors +[colors.bright] +black = '0x4c566a' +red = '0xd08770' +green = '0x3b4252' +yellow = '0x434c5e' +blue = '0xd8dee9' +magenta = '0xeceff4' +cyan = '0x5e81ac' +white = '0x8fbcbb' diff --git a/config/.config/alacritty/nord.toml b/config/.config/alacritty/nord.toml new file mode 100644 index 0000000..b434cec --- /dev/null +++ b/config/.config/alacritty/nord.toml @@ -0,0 +1,58 @@ +# TOML interpretation of the https://github.com/nordtheme/alacritty +# See also: https://github.com/nordtheme/alacritty/issues/40 +# (if the above is resolved, you may not need this Gist) + +[colors.primary] +background = "#2e3440" +foreground = "#d8dee9" +dim_foreground = "#a5abb6" + +[colors.cursor] +text = "#2e3440" +cursor = "#d8dee9" + +[colors.vi_mode_cursor] +text = "#2e3440" +cursor = "#d8dee9" + +[colors.selection] +text = "CellForeground" +background = "#4c566a" + +[colors.search.matches] +foreground = "CellBackground" +background = "#88c0d0" + +[colors.footer_bar] +background = "#434c5e" +foreground = "#d8dee9" + +[colors.normal] +black = "#3b4252" +red = "#bf616a" +green = "#a3be8c" +yellow = "#ebcb8b" +blue = "#81a1c1" +magenta = "#b48ead" +cyan = "#88c0d0" +white = "#e5e9f0" + +[colors.bright] +black = "#4c566a" +red = "#bf616a" +green = "#a3be8c" +yellow = "#ebcb8b" +blue = "#81a1c1" +magenta = "#b48ead" +cyan = "#8fbcbb" +white = "#eceff4" + +[colors.dim] +black = "#373e4d" +red = "#94545d" +green = "#809575" +yellow = "#b29e75" +blue = "#68809a" +magenta = "#8c738c" +cyan = "#6d96a5" +white = "#aeb3bb" diff --git a/config/.config/alacritty/nord.yaml b/config/.config/alacritty/nord.yaml new file mode 100644 index 0000000..b52b087 --- /dev/null +++ b/config/.config/alacritty/nord.yaml @@ -0,0 +1,51 @@ +# Copyright (c) 2016-present Sven Greb +# This source code is licensed under the MIT license found in the license file. + +colors: + primary: + background: "#2e3440" + foreground: "#d8dee9" + dim_foreground: "#a5abb6" + cursor: + text: "#2e3440" + cursor: "#d8dee9" + vi_mode_cursor: + text: "#2e3440" + cursor: "#d8dee9" + selection: + text: CellForeground + background: "#4c566a" + search: + matches: + foreground: CellBackground + background: "#88c0d0" + bar: + background: "#434c5e" + foreground: "#d8dee9" + normal: + black: "#3b4252" + red: "#bf616a" + green: "#a3be8c" + yellow: "#ebcb8b" + blue: "#81a1c1" + magenta: "#b48ead" + cyan: "#88c0d0" + white: "#e5e9f0" + bright: + black: "#4c566a" + red: "#bf616a" + green: "#a3be8c" + yellow: "#ebcb8b" + blue: "#81a1c1" + magenta: "#b48ead" + cyan: "#8fbcbb" + white: "#eceff4" + dim: + black: "#373e4d" + red: "#94545d" + green: "#809575" + yellow: "#b29e75" + blue: "#68809a" + magenta: "#8c738c" + cyan: "#6d96a5" + white: "#aeb3bb" diff --git a/config/.config/kak/kakrc b/config/.config/kak/kakrc index fb1a6de..bc7dbde 100644 --- a/config/.config/kak/kakrc +++ b/config/.config/kak/kakrc @@ -227,27 +227,27 @@ set-option global lsp_config %{ define-command fzf-buffer -docstring 'Invoke fzf to select a buffer' %{ evaluate-commands %sh{ - tmux split-window -l 30% "(echo $kak_buflist | tr ' ' '\n' | fzf --bind 'focus:execute-silent(echo \"eval -client $kak_client %{ e {} }\" | kak -p $kak_session)' || echo \"$kak_buffile\") | xargs -I{} echo \"eval -client $kak_client %{ e {} }\" | /usr/bin/kak -p $kak_session" - } + tmux split-window -l 30% "(echo $kak_buflist | tr ' ' '\n' | fzf --color=fg:#e5e9f0,bg:#3b4252,hl:#81a1c1 --color=fg+:#e5e9f0,bg+:#3b4252,hl+:#81a1c1 --color=info:#eacb8a,prompt:#bf6069,pointer:#b48dac --color=marker:#a3be8b,spinner:#b48dac,header:#a3be8b --bind 'focus:execute-silent(echo \"eval -client $kak_client %{ e {} }\" | kak -p $kak_session)' || echo \"$kak_buffile\") | xargs -I{} echo \"eval -client $kak_client %{ e {} }\" | /usr/bin/kak -p $kak_session" +} } -# define-command -docstring 'Invoke fzf to select a buffer' fzf-buffer %{ -# evaluate-commands %sh{ -# BUFFER=$( -# ( -# eval "set -- $kak_buflist" -# while [ $# -gt 0 ]; do -# printf "%s\0" "$1" -# shift -# done -# ) | -# fzf-tmux --cycle -p 80%,90% --read0 --preview='bat --theme=base16-256 --color=always {} 2>/dev/null' -# ) -# if [ -n "$BUFFER" ]; then -# printf "buffer %s" "${BUFFER}" -# fi -# } -# } +define-command -docstring 'Invoke fzf to select a buffer' prev-fzf-buff %{ + evaluate-commands %sh{ + BUFFER=$( + ( + eval "set -- $kak_buflist" + while [ $# -gt 0 ]; do + printf "%s\0" "$1" + shift + done + ) | + fzf-tmux --cycle -p 80%,90% --read0 --preview='bat --theme=base16-256 --color=always {} 2>/dev/null' + ) + if [ -n "$BUFFER" ]; then + printf "buffer %s" "${BUFFER}" + fi + } +} define-command -docstring 'live grep' live-grep %{ evaluate-commands %sh{ @@ -453,4 +453,3 @@ map -docstring 'clipboard paste' global user p ':xpaste' map -docstring 'quit kakoune' global user q ':q' map -docstring 'toggle comments' global user c ':comment-line' -colorscheme base16-gruvbox-dark-medium diff --git a/config/.config/qutebrowser/theme.py b/config/.config/qutebrowser/theme.py index 30cdd6d..9b7000f 100644 --- a/config/.config/qutebrowser/theme.py +++ b/config/.config/qutebrowser/theme.py @@ -1,25 +1,25 @@ # base16-qutebrowser (https://github.com/theova/base16-qutebrowser) -# Scheme name: Monokai -# Scheme author: Wimer Hazenberg (http://www.monokai.nl) +# Scheme name: Nord +# Scheme author: arcticicestudio # Template author: theova # Commentary: Tinted Theming: (https://github.com/tinted-theming) -base00 = "#272822" -base01 = "#383830" -base02 = "#49483e" -base03 = "#75715e" -base04 = "#a59f85" -base05 = "#f8f8f2" -base06 = "#f5f4f1" -base07 = "#f9f8f5" -base08 = "#f92672" -base09 = "#fd971f" -base0A = "#f4bf75" -base0B = "#a6e22e" -base0C = "#a1efe4" -base0D = "#66d9ef" -base0E = "#ae81ff" -base0F = "#cc6633" +base00 = "#2e3440" +base01 = "#3b4252" +base02 = "#434c5e" +base03 = "#4c566a" +base04 = "#d8dee9" +base05 = "#e5e9f0" +base06 = "#eceff4" +base07 = "#8fbcbb" +base08 = "#bf616a" +base09 = "#d08770" +base0A = "#ebcb8b" +base0B = "#a3be8c" +base0C = "#88c0d0" +base0D = "#81a1c1" +base0E = "#b48ead" +base0F = "#5e81ac" # set qutebrowser colors diff --git a/config/.theme.xresources b/config/.theme.xresources index b8d1821..e8ec76c 100644 --- a/config/.theme.xresources +++ b/config/.theme.xresources @@ -1,26 +1,26 @@ -! base16 Monokai -! Scheme author: Wimer Hazenberg (http://www.monokai.nl) +! base16 Nord +! Scheme author: arcticicestudio ! Template author: Tinted Theming (https://github.com/tinted-theming) -#define base00 #272822 -#define base01 #383830 -#define base02 #49483e -#define base04 #a59f85 -#define base05 #f8f8f2 -#define base06 #f5f4f1 -#define base07 #f9f8f5 -#define base08 #f92672 -#define base09 #fd971f -#define base0A #f4bf75 -#define base0B #a6e22e -#define base0C #a1efe4 -#define base0D #66d9ef -#define base0E #ae81ff -#define base0F #cc6633 +#define base00 #2e3440 +#define base01 #3b4252 +#define base02 #434c5e +#define base04 #d8dee9 +#define base05 #e5e9f0 +#define base06 #eceff4 +#define base07 #8fbcbb +#define base08 #bf616a +#define base09 #d08770 +#define base0A #ebcb8b +#define base0B #a3be8c +#define base0C #88c0d0 +#define base0D #81a1c1 +#define base0E #b48ead +#define base0F #5e81ac *foreground: base05 #ifdef background_opacity -*background: #cc272822 +*background: #cc2e3440 #else *background: base00 #endif diff --git a/config/.tmux.conf b/config/.tmux.conf index d1e658d..f863624 100644 --- a/config/.tmux.conf +++ b/config/.tmux.conf @@ -1,7 +1,7 @@ # List of plugins -#set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tpm' #set -g @plugin 'tmux-plugins/tmux-sensible' -#set -g @plugin 'arcticicestudio/nord-tmux' +set -g @plugin 'arcticicestudio/nord-tmux' set -g default-terminal "xterm-256color" set -ga terminal-overrides ",xterm*:Tc" set -g mouse on @@ -22,7 +22,7 @@ bind-key l select-pane -R # set -g @plugin 'git@github.com:user/plugin' # set -g @plugin 'git@bitbucket.com:user/plugin' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -#run '~/.tmux/plugins/tpm/tpm' +run '~/.tmux/plugins/tpm/tpm' run-shell "tmux source-file ~/.local/share/tinted-theming/tinty/repos/tinted-tmux/colors/base16-$BASE16_THEME.conf" set -g prefix None