]> Freerunner's - dotfiles.git/commitdiff
flavours: move some templates into static configuration
authorAndre Ramnitz <tux.rising@gmail.com>
Fri, 15 Nov 2024 06:47:34 +0000 (07:47 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Fri, 15 Nov 2024 06:59:25 +0000 (07:59 +0100)
(in other words: move from .local to .config). Fixes some
problems when pulling the dotfiles from a clean install.

dot-config/flavours/templates/fish/templates/config.yaml [new file with mode: 0644]
dot-config/flavours/templates/fish/templates/default.mustache [new file with mode: 0644]
dot-config/flavours/templates/fuzzel/templates/config.yaml [new file with mode: 0644]
dot-config/flavours/templates/fuzzel/templates/default.mustache [new file with mode: 0644]
dot-config/flavours/templates/fuzzel/templates/smooth.mustache [new file with mode: 0644]
dot-config/flavours/templates/waybar/templates/config.yaml [new file with mode: 0644]
dot-config/flavours/templates/waybar/templates/default.mustache [new file with mode: 0644]
dot-local/share/flavours/base16/sources/schemes/list.yaml [deleted file]
dot-local/share/flavours/base16/sources/templates/list.yaml [deleted file]

diff --git a/dot-config/flavours/templates/fish/templates/config.yaml b/dot-config/flavours/templates/fish/templates/config.yaml
new file mode 100644 (file)
index 0000000..d1096a1
--- /dev/null
@@ -0,0 +1,3 @@
+default:
+    extension: .fish
+    output: functions
diff --git a/dot-config/flavours/templates/fish/templates/default.mustache b/dot-config/flavours/templates/fish/templates/default.mustache
new file mode 100644 (file)
index 0000000..aa5cdfd
--- /dev/null
@@ -0,0 +1,132 @@
+# base16-fish (https://github.com/tomyun/base16-fish)
+# based on base16-shell (https://github.com/chriskempson/base16-shell)
+# {{scheme-name}} scheme by {{scheme-author}}
+
+function base16-{{scheme-slug}} -d "{{scheme-name}}"
+  set color00 {{base00-hex-r}}/{{base00-hex-g}}/{{base00-hex-b}} # Base 00 - Black
+  set color01 {{base08-hex-r}}/{{base08-hex-g}}/{{base08-hex-b}} # Base 08 - Red
+  set color02 {{base0B-hex-r}}/{{base0B-hex-g}}/{{base0B-hex-b}} # Base 0B - Green
+  set color03 {{base0A-hex-r}}/{{base0A-hex-g}}/{{base0A-hex-b}} # Base 0A - Yellow
+  set color04 {{base0D-hex-r}}/{{base0D-hex-g}}/{{base0D-hex-b}} # Base 0D - Blue
+  set color05 {{base0E-hex-r}}/{{base0E-hex-g}}/{{base0E-hex-b}} # Base 0E - Magenta
+  set color06 {{base0C-hex-r}}/{{base0C-hex-g}}/{{base0C-hex-b}} # Base 0C - Cyan
+  set color07 {{base05-hex-r}}/{{base05-hex-g}}/{{base05-hex-b}} # Base 05 - White
+  set color08 {{base03-hex-r}}/{{base03-hex-g}}/{{base03-hex-b}} # Base 03 - Bright Black
+  set color09 $color01 # Base 08 - Bright Red
+  set color10 $color02 # Base 0B - Bright Green
+  set color11 $color03 # Base 0A - Bright Yellow
+  set color12 $color04 # Base 0D - Bright Blue
+  set color13 $color05 # Base 0E - Bright Magenta
+  set color14 $color06 # Base 0C - Bright Cyan
+  set color15 {{base07-hex-r}}/{{base07-hex-g}}/{{base07-hex-b}} # Base 07 - Bright White
+  set color16 {{base09-hex-r}}/{{base09-hex-g}}/{{base09-hex-b}} # Base 09
+  set color17 {{base0F-hex-r}}/{{base0F-hex-g}}/{{base0F-hex-b}} # Base 0F
+  set color18 {{base01-hex-r}}/{{base01-hex-g}}/{{base01-hex-b}} # Base 01
+  set color19 {{base02-hex-r}}/{{base02-hex-g}}/{{base02-hex-b}} # Base 02
+  set color20 {{base04-hex-r}}/{{base04-hex-g}}/{{base04-hex-b}} # Base 04
+  set color21 {{base06-hex-r}}/{{base06-hex-g}}/{{base06-hex-b}} # Base 06
+  set colorfg $color07 # Base 05 - White
+  set colorbg $color00 # Base 00 - Black
+
+  if test -n "$TMUX"
+    # Tell tmux to pass the escape sequences through
+    # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
+    function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end;
+    function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end;
+    function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end;
+  else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ]
+    # GNU screen (screen, screen-256color, screen-256color-bce)
+    function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end;
+    function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end;
+    function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end;
+  else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ]
+    function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end;
+    function put_template_var; true; end;
+    function put_template_custom; true; end;
+  else
+    function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end;
+    function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end;
+    function put_template_custom; printf '\033]%s%s\033\\' $argv; end;
+  end
+
+  # 16 color space
+  put_template 0  $color00
+  put_template 1  $color01
+  put_template 2  $color02
+  put_template 3  $color03
+  put_template 4  $color04
+  put_template 5  $color05
+  put_template 6  $color06
+  put_template 7  $color07
+  put_template 8  $color08
+  put_template 9  $color09
+  put_template 10 $color10
+  put_template 11 $color11
+  put_template 12 $color12
+  put_template 13 $color13
+  put_template 14 $color14
+  put_template 15 $color15
+
+  # 256 color space
+  put_template 16 $color16
+  put_template 17 $color17
+  put_template 18 $color18
+  put_template 19 $color19
+  put_template 20 $color20
+  put_template 21 $color21
+
+  # foreground / background / cursor color
+  if test -n "$ITERM_SESSION_ID"
+    # iTerm2 proprietary escape codes
+    put_template_custom Pg {{base05-hex}} # foreground
+    put_template_custom Ph {{base00-hex}} # background
+    put_template_custom Pi {{base05-hex}} # bold color
+    put_template_custom Pj {{base02-hex}} # selection color
+    put_template_custom Pk {{base05-hex}} # selected text color
+    put_template_custom Pl {{base05-hex}} # cursor
+    put_template_custom Pm {{base00-hex}} # cursor text
+  else
+    put_template_var 10 $colorfg
+    if [ "$BASE16_SHELL_SET_BACKGROUND" != false ]
+      put_template_var 11 $colorbg
+      if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ]
+        put_template_var 708 $colorbg # internal border (rxvt)
+      end
+    end
+    put_template_custom 12 ";7" # cursor (reverse video)
+  end
+
+  # set syntax highlighting colors
+  set -U fish_color_autosuggestion {{base02-hex}}
+  set -U fish_color_cancel -r
+  set -U fish_color_command green #white
+  set -U fish_color_comment {{base02-hex}}
+  set -U fish_color_cwd green
+  set -U fish_color_cwd_root red
+  set -U fish_color_end brblack #blue
+  set -U fish_color_error red
+  set -U fish_color_escape yellow #green
+  set -U fish_color_history_current --bold
+  set -U fish_color_host normal
+  set -U fish_color_match --background=brblue
+  set -U fish_color_normal normal
+  set -U fish_color_operator blue #green
+  set -U fish_color_param {{base04-hex}}
+  set -U fish_color_quote yellow #brblack
+  set -U fish_color_redirection cyan
+  set -U fish_color_search_match bryellow --background={{base02-hex}}
+  set -U fish_color_selection white --bold --background={{base02-hex}}
+  set -U fish_color_status red
+  set -U fish_color_user brgreen
+  set -U fish_color_valid_path --underline
+  set -U fish_pager_color_completion normal
+  set -U fish_pager_color_description yellow --dim
+  set -U fish_pager_color_prefix white --bold #--underline
+  set -U fish_pager_color_progress brwhite --background=cyan
+
+  # remember current theme
+  set -U base16_theme {{scheme-slug}}
+
+  # clean up
+  functions -e put_template put_template_var put_template_custom
+end
diff --git a/dot-config/flavours/templates/fuzzel/templates/config.yaml b/dot-config/flavours/templates/fuzzel/templates/config.yaml
new file mode 100644 (file)
index 0000000..fbb93d5
--- /dev/null
@@ -0,0 +1,7 @@
+default:
+       extension: .ini
+       output: fuzzel
+
+smooth:
+       extension: .ini
+       output: fuzzel
diff --git a/dot-config/flavours/templates/fuzzel/templates/default.mustache b/dot-config/flavours/templates/fuzzel/templates/default.mustache
new file mode 100644 (file)
index 0000000..ed8f32e
--- /dev/null
@@ -0,0 +1,10 @@
+## {{scheme-name}} theme
+## by {{scheme-author}}
+
+background={{base00-hex}}ff
+text={{base05-hex}}ff
+match={{base0D-hex}}ff
+selection={{base03-hex}}ff
+selection-text={{base06-hex}}ff
+selection-match={{base0D-hex}}ff
+border={{base05-hex}}ff
diff --git a/dot-config/flavours/templates/fuzzel/templates/smooth.mustache b/dot-config/flavours/templates/fuzzel/templates/smooth.mustache
new file mode 100644 (file)
index 0000000..a17532b
--- /dev/null
@@ -0,0 +1,10 @@
+## {{scheme-name}} theme
+## by {{scheme-author}}
+
+background={{base01-hex}}f2
+text={{base05-hex}}ff
+match={{base0D-hex}}ff
+selection={{base03-hex}}ff
+selection-text={{base06-hex}}ff
+selection-match={{base0D-hex}}ff
+border={{base0D-hex}}ff
diff --git a/dot-config/flavours/templates/waybar/templates/config.yaml b/dot-config/flavours/templates/waybar/templates/config.yaml
new file mode 100644 (file)
index 0000000..f248d38
--- /dev/null
@@ -0,0 +1,3 @@
+default:
+  extension: .css
+  output: colors
diff --git a/dot-config/flavours/templates/waybar/templates/default.mustache b/dot-config/flavours/templates/waybar/templates/default.mustache
new file mode 100644 (file)
index 0000000..e198695
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+*
+* Base16 {{scheme-name}}
+* Author: {{scheme-author}}
+*
+*/
+
+@define-color base00 #{{base00-hex}};
+@define-color base01 #{{base01-hex}};
+@define-color base02 #{{base02-hex}};
+@define-color base03 #{{base03-hex}};
+@define-color base04 #{{base04-hex}};
+@define-color base05 #{{base05-hex}};
+@define-color base06 #{{base06-hex}};
+@define-color base07 #{{base07-hex}};
+@define-color base08 #{{base08-hex}};
+@define-color base09 #{{base09-hex}};
+@define-color base0A #{{base0A-hex}};
+@define-color base0B #{{base0B-hex}};
+@define-color base0C #{{base0C-hex}};
+@define-color base0D #{{base0D-hex}};
+@define-color base0E #{{base0E-hex}};
+@define-color base0F #{{base0F-hex}};
diff --git a/dot-local/share/flavours/base16/sources/schemes/list.yaml b/dot-local/share/flavours/base16/sources/schemes/list.yaml
deleted file mode 100644 (file)
index feda88d..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-# Please order list alphanumerically
-# apprentice: https://github.com/casonadams/base16-apprentice-scheme
-# atelier: https://github.com/atelierbram/base16-atelier-schemes
-# atlas: https://github.com/ajlende/base16-atlas-scheme
-# black-metal: https://github.com/metalelf0/base16-black-metal-scheme
-# blueish: https://github.com/TheMayoras/base16-blueish-scheme
-# #brogrammer: https://github.com/piggyslasher/base16-brogrammer-scheme
-# brushtrees: https://github.com/WhiteAbeLincoln/base16-brushtrees-scheme
-catpuccin: https://github.com/catppuccin/base16.git
-circus: https://github.com/stepchowfun/base16-circus-scheme
-classic: https://github.com/detly/base16-classic-scheme
-# codeschool: https://github.com/blockloop/base16-codeschool-scheme
-colors: https://github.com/hakatashi/base16-colors-scheme
-cupertino: https://github.com/Defman21/base16-cupertino
-da-one: https://github.com/NNBnh/base16-da-one-schemes
-danqing: https://github.com/CosmosAtlas/base16-danqing-scheme
-# darkmoss: https://github.com/avanzzzi/base16-darkmoss-scheme
-# darkviolet: https://github.com/ruler501/base16-darkviolet-scheme
-deep-oceanic-next: https://github.com/spearkkk/deep-oceanic-next
-default: https://github.com/chriskempson/base16-default-schemes
-# dirtysea: https://github.com/tartansandal/base16-dirtysea-scheme
-dracula: https://github.com/dracula/base16-dracula-scheme
-edge: https://github.com/cjayross/base16-edge-schemes
-equilibrium: https://github.com/carloabelli/base16-equilibrium-scheme
-espresso: https://github.com/alexmirrington/base16-espresso-scheme
-# eva: https://github.com/kjakapat/base16-eva-scheme
-# framer: https://github.com/jssee/base16-framer-scheme
-# fruit-soda: https://github.com/jozip/base16-fruit-soda-scheme
-foot: https://git.sr.ht/~h4n1/base16-foot
-# gigavolt: https://github.com/Whillikers/base16-gigavolt-scheme
-# github: https://github.com/Defman21/base16-github-scheme
-gruvbox: https://github.com/dawikur/base16-gruvbox-scheme
-gruvbox-material: https://github.com/MayushKumar/base16-gruvbox-material-scheme
-# hardcore: https://github.com/callerc1/base16-hardcore-scheme
-# heetch: https://github.com/tealeg/base16-heetch-scheme
-helios: https://github.com/reyemxela/base16-helios-scheme
-# horizon: https://github.com/michael-ball/base16-horizon-scheme
-# horizon: https://git.michaelball.name/base16-horizon-scheme
-# humanoid: https://github.com/humanoid-colors/base16-humanoid-schemes
-# ia: https://github.com/aramisgithub/base16-ia-scheme
-# icy: https://github.com/icyphox/base16-icy-scheme
-kanagawa: https://github.com/montdor/base16-kanagawa-theme.git
-# katy: https://github.com/gessig/base16-katy-scheme
-kimber: https://github.com/akhsiM/base16-kimber-scheme
-# limelight: https://github.com/limelier/base16-limelight-scheme
-materia: https://github.com/Defman21/base16-materia
-material-vivid: https://github.com/joshyrobot/base16-material-vivid-scheme
-materialtheme: https://github.com/ntpeters/base16-materialtheme-scheme
-# mellow: https://github.com/gidsi/base16-mellow-scheme
-mexico-light: https://github.com/drzel/base16-mexico-light-scheme
-# nebula: https://github.com/Misterio77/base16-nebula-scheme
-nord: git://git.ramnitz.eu/base16-nord-fixed
-# nova: https://github.com/gessig/base16-nova-scheme
-one-light: https://github.com/purpleKarrot/base16-one-light-scheme
-onedark: https://github.com/tilal6991/base16-onedark-scheme
-# outrun: https://github.com/hugodelahousse/base16-outrun-schemes
-# #papercolor: https://github.com/jonleopard/base16-papercolor-scheme
-# pasque: https://github.com/Misterio77/base16-pasque-scheme
-# pinky: https://github.com/b3nj5m1n/base16-pinky-scheme
-porple: https://github.com/AuditeMarlow/base16-porple-scheme
-precious: https://github.com/precious-themes/base16-precious-schemes
-# primer: https://github.com/jmlntw/base16-primer-scheme
-# purpledream: https://github.com/archmalet/base16-purpledream-scheme
-# qualia: https://github.com/isaacwhanson/base16-qualia-scheme
-# rebecca: https://github.com/vic/base16-rebecca
-rose-pine: https://github.com/edunfelt/base16-rose-pine-scheme
-# sagelight: https://github.com/cveldy/base16-sagelight-scheme
-# sakura: https://github.com/Misterio77/base16-sakura-scheme
-# sandcastle: https://github.com/gessig/base16-sandcastle-scheme
-selenized: https://github.com/jan-warchol/selenized
-# shades-of-purple: https://github.com/ahmadawais/base16-shades-of-purple
-# silk: https://github.com/misterio77/base16-silk-scheme
-snazzy: https://github.com/h404bi/base16-snazzy-scheme
-# solarflare: https://github.com/mnussbaum/base16-solarflare-scheme
-# solarized: https://github.com/aramisgithub/base16-solarized-scheme
-spaceduck: https://github.com/Misterio77/base16-spaceduck-scheme
-standardized: https://github.com/ali-githb/base16-standardized-scheme
-# stella: https://github.com/Shrimpram/base16-stella-scheme
-summercamp: https://github.com/zoefiri/base16-summercamp
-summerfruit: https://github.com/cscorley/base16-summerfruit-scheme
-synth-midnight: https://github.com/michael-ball/base16-synth-midnight-scheme
-# tango: https://github.com/Schnouki/base16-tango-scheme
-# tender: https://github.com/DanManN/base16-tender-scheme
-tokyonight: https://github.com/viniciusmuller/base16-tokyonight-scheme.git
-# tomorrow: https://github.com/chriskempson/base16-tomorrow-scheme
-twilight: https://github.com/hartbit/base16-twilight-scheme
-# unikitty: https://github.com/joshwlewis/base16-unikitty
-vice: https://github.com/Thomashighbaugh/base16-vice-scheme
-vulcan: https://github.com/andreyvpng/base16-vulcan-scheme
-# #wood: https://github.com/shhra/base16-wood-scheme
-woodland: https://github.com/jcornwall/base16-woodland-scheme
-# xcode-dusk: https://github.com/gonsie/base16-xcode-dusk-scheme
-# zenburn: https://github.com/elnawe/base16-zenburn-scheme
-
-# If your scheme is in this repository, please give it a new home!
-# unclaimed: https://github.com/chriskempson/base16-unclaimed-schemes
-
-# NOTE: the original repo at https://github.com/8-uh/base16-nord-scheme
-# is based on another color scheme and doesn't quite match. There was a
-# fork to improve the colors, so that's what we're using. If the original
-# repo ever gets updated, we can switch back to that.
-# nord: https://github.com/spejamchr/base16-nord-scheme
diff --git a/dot-local/share/flavours/base16/sources/templates/list.yaml b/dot-local/share/flavours/base16/sources/templates/list.yaml
deleted file mode 100644 (file)
index b0f5af7..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# Please order list alphanumerically
-aerc: https://git.sr.ht/~h4n1/base16-aerc
-# alacritty: https://github.com/aaron-williamson/base16-alacritty
-# binary-ninja: https://github.com/evanrichter/base16-binary-ninja
-# blink: https://github.com/niklaas/base16-blink.git
-# c_header: https://github.com/m1sports20/base16-c_header
-# concfg: https://github.com/h404bi/base16-concfg
-# conemu: https://github.com/martinlindhe/base16-conemu
-# console2: https://github.com/AFulgens/base16-console2
-# consolez: https://github.com/AFulgens/base16-consolez
-# crosh: https://github.com/philj56/base16-crosh
-# dwm: https://github.com/dgmulf/base16-dwm
-# dunst: https://github.com/khamer/base16-dunst
-# emacs: https://github.com/belak/base16-emacs
-# everything: https://github.com/spitfire05/base16-everything
-fish: https://github.com/tomyun/base16-fish
-# foot: https://github.com/tinted-theming/base16-foot
-fuzzel: https://github.com/dark-beep-boop/base16-fuzzel
-# fzf: https://github.com/fnune/base16-fzf
-# gnome-terminal: https://github.com/aaron-williamson/base16-gnome-terminal
-# godot: https://github.com/Calinou/base16-godot
-# gtk-flatcolor: https://github.com/Misterio77/base16-gtk-flatcolor
-# gtk2: https://github.com/dawikur/base16-gtk2
-# hexchat: https://github.com/Diablo-D3/base16-hexchat
-# highlight: https://github.com/bezhermoso/base16-highlight
-# html-preview: https://github.com/chriskempson/base16-html-preview
-# hugo: https://github.com/yawpitch/base16-hugo
-hyprland: https://github.com/kirasok/base16-hyprland
-# i3: https://github.com/khamer/base16-i3
-# i3status: https://github.com/Eluminae/base16-i3status
-# i3status-rust: https://github.com/mystfox/base16-i3status-rust
-# iterm2: https://github.com/martinlindhe/base16-iterm2
-# jetbrains: https://github.com/adilosa/base16-jetbrains
-# joe: https://github.com/jjjordan/base16-joe
-kakoune: https://github.com/aprilarcus/base16-kakoune
-kdeplasma: https://github.com/Base24/base16-kdeplasma
-# kitty: https://github.com/kdrag0n/base16-kitty
-# konsole: https://github.com/cskeeters/base16-konsole
-# luakit: https://github.com/twnaing/base16-luakit
-# mako: https://github.com/Eluminae/base16-mako
-# mintty: https://github.com/iamthad/base16-mintty
-# monodevelop: https://github.com/netpyoung/base16-monodevelop
-# prism: https://github.com/atelierbram/base16-prism
-# prompt-toolkit: https://github.com/memeplex/base16-prompt-toolkit
-# putty: https://github.com/abravalheri/base16-putty
-# pygments: https://github.com/mohd-akram/base16-pygments
-# pywal: https://github.com/metalelf0/base16-pywal
-# qownnotes: https://github.com/themix-project/base16-template-qOwnNotes
-# qtcreator: https://github.com/ilpianista/base16-qtcreator
-qutebrowser: https://github.com/theova/base16-qutebrowser
-# #radare2: https://github.com/jtalowell/base16-radare2
-# rofi: https://gitlab.com/0xdec/base16-rofi
-# scide: https://github.com/brunoro/base16-scide
-shell: https://github.com/chriskempson/base16-shell
-# st: https://github.com/dgmulf/base16-st
-# stumpwm: https://github.com/tpine/base16-stumpwm
-# styles: https://github.com/samme/base16-styles
-# sway: https://github.com/rkubosz/base16-sway
-# terminator: https://github.com/Schnouki/base16-terminator
-# termite: https://github.com/khamer/base16-termite
-# termux: https://github.com/kdrag0n/base16-termux
-# textadept: https://github.com/rgieseke/base16-textadept
-# textmate: https://github.com/chriskempson/base16-textmate
-# tilix: https://github.com/karlding/base16-tilix
-# tmux: https://github.com/mattdavis90/base16-tmux
-# vim-airline-themes: https://github.com/dawikur/base16-vim-airline-themes
-# vim: https://github.com/chriskempson/base16-vim
-# vimiv: https://github.com/karlch/base16-vimiv
-# vis: https://github.com/pshevtsov/base16-vis
-# vscode: https://github.com/golf1052/base16-vscode
-waybar: https://github.com/mnussbaum/base16-waybar
-# windows-command-prompt: https://github.com/iamthad/base16-windows-command-prompt
-# windows-terminal: https://github.com/wuqs-net/base16-windows-terminal
-# wofi: https://git.sr.ht/~knezi/base16-wofi
-# xcode: https://github.com/kreeger/base16-xcode
-# xfce4-terminal: https://github.com/afg984/base16-xfce4-terminal
-# xshell: https://github.com/h404bi/base16-xshell
-# zathura: https://github.com/nicodebo/base16-zathura
-
-# Disabled until https://gitlab.com/theova/base16-telegram-desktop/issues/1 is
-# resolved.
-# telegram-desktop: https://gitlab.com/theova/base16-telegram-desktop