mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-26 14:32:52 -05:00
Feat: wezterm theming support (#705)
* implemented logic for wezterm theming added matugen configs and dank16 functions, updated matugen worked scripta * fixed theme dir fixed path and moved output location to default wezterm dir
This commit is contained in:
@@ -116,7 +116,7 @@ Theme singleton provides Material Design 3 color system, spacing, fonts, and ele
|
||||
Templates in `scripts/templates/` generate themes for:
|
||||
- GTK 3/4
|
||||
- Qt5/Qt6
|
||||
- Alacritty, Kitty, Foot terminals
|
||||
- Alacritty, Kitty, Ghostty, Foot, Wezterm terminals
|
||||
- VSCode/VSCodium
|
||||
- Firefox
|
||||
|
||||
|
||||
3
quickshell/matugen/configs/wezterm.toml
Normal file
3
quickshell/matugen/configs/wezterm.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[templates.dmswezterm]
|
||||
input_path = 'SHELL_DIR/matugen/templates/wezterm.toml'
|
||||
output_path = '~/.config/wezterm/colors/dank-theme.toml'
|
||||
10
quickshell/matugen/templates/wezterm.toml
Normal file
10
quickshell/matugen/templates/wezterm.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[colors]
|
||||
background = '{{colors.background.default.hex}}'
|
||||
foreground = '{{colors.on_surface.default.hex}}'
|
||||
|
||||
cursor_bg = '{{colors.primary.default.hex}}'
|
||||
cursor_fg = '{{colors.background.default.hex}}'
|
||||
cursor_border = '{{colors.primary.default.hex}}'
|
||||
|
||||
selection_bg = '{{colors.primary_container.default.hex}}'
|
||||
selection_fg = '{{colors.on_surface.default.hex}}'
|
||||
@@ -222,6 +222,11 @@ EOF
|
||||
echo "" >> "$TMP_CONTENT_CFG"
|
||||
fi
|
||||
|
||||
if command -v wezterm >/dev/null 2>&1; then
|
||||
sed "s|'SHELL_DIR/|'$SHELL_DIR/|g" "$SHELL_DIR/matugen/configs/wezterm.toml" >>"$TMP_CONTENT_CFG"
|
||||
echo "" >>"$TMP_CONTENT_CFG"
|
||||
fi
|
||||
|
||||
if command -v dgop >/dev/null 2>&1; then
|
||||
sed "s|'SHELL_DIR/|'$SHELL_DIR/|g" "$SHELL_DIR/matugen/configs/dgop.toml" >> "$TMP_CONTENT_CFG"
|
||||
echo "" >> "$TMP_CONTENT_CFG"
|
||||
@@ -321,6 +326,20 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v wezterm >/dev/null 2>&1; then
|
||||
WEZTERM_CONFIG="$CONFIG_DIR/wezterm/colors/dank-theme.toml"
|
||||
|
||||
if [[ ! -f "$WEZTERM_CONFIG" ]]; then
|
||||
mkdir -p "$(dirname "$WEZTERM_CONFIG")"
|
||||
touch "$WEZTERM_CONFIG"
|
||||
fi
|
||||
|
||||
OUT=$(dms dank16 "$PRIMARY" $([[ "$mode" == "light" ]] && echo --light) ${SURFACE:+--background "$SURFACE"} --wezterm 2>/dev/null || true)
|
||||
if [[ -n "${OUT:-}" ]]; then
|
||||
printf "\n%s\n" "$OUT" >>"$WEZTERM_CONFIG"
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v alacritty >/dev/null 2>&1; then
|
||||
ALACRITTY_CONFIG="$CONFIG_DIR/alacritty/dank-theme.toml"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user