forked from Shinonome/dots-hyprland
material palette: apply to kde material you colors
This commit is contained in:
@@ -25,23 +25,9 @@ output_path = '~/.config/gtk-3.0/gtk.css'
|
||||
input_path = '~/.config/matugen/templates/gtk/gtk-colors.css'
|
||||
output_path = '~/.config/gtk-4.0/gtk.css'
|
||||
|
||||
[templates.ags_source_view]
|
||||
input_path = '~/.config/matugen/templates/ags/sourceviewtheme.xml'
|
||||
output_path = '~/.config/ags/assets/themes/sourceviewtheme.xml'
|
||||
|
||||
[templates.ags_source_view_light]
|
||||
input_path = '~/.config/matugen/templates/ags/sourceviewtheme-light.xml'
|
||||
output_path = '~/.config/ags/assets/themes/sourceviewtheme-light.xml'
|
||||
|
||||
[templates.ags_scss]
|
||||
input_path = '~/.config/matugen/templates/ags/_material.scss'
|
||||
output_path = '~/.local/state/ags/scss/_material.scss'
|
||||
post_hook = 'pidof gjs && agsv1 run-js "handleStyles(false)"'
|
||||
|
||||
[templates.kde_colors]
|
||||
input_path = '~/.config/matugen/templates/kde/color.txt'
|
||||
output_path = '~/.local/state/quickshell/user/generated/color.txt'
|
||||
post_hook = '~/.config/matugen/templates/kde/kde-material-you-colors-wrapper.sh'
|
||||
|
||||
[templates.wallpaper]
|
||||
input_path = '~/.config/matugen/templates/wallpaper.txt'
|
||||
|
||||
@@ -11,4 +11,36 @@ else
|
||||
mode_flag="-l"
|
||||
fi
|
||||
|
||||
kde-material-you-colors "$mode_flag" --color "$color"
|
||||
# Parse --scheme-variant flag
|
||||
scheme_variant_str=""
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
--scheme-variant)
|
||||
scheme_variant_str="$2"
|
||||
shift 2
|
||||
;;
|
||||
*)
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Map string variant to integer
|
||||
case "$scheme_variant_str" in
|
||||
scheme-content) sv_num=0 ;;
|
||||
scheme-expressive) sv_num=1 ;;
|
||||
scheme-fidelity) sv_num=2 ;;
|
||||
scheme-monochrome) sv_num=3 ;;
|
||||
scheme-neutral) sv_num=4 ;;
|
||||
scheme-tonal-spot) sv_num=5 ;;
|
||||
scheme-vibrant) sv_num=6 ;;
|
||||
scheme-rainbow) sv_num=7 ;;
|
||||
scheme-fruit-salad) sv_num=8 ;;
|
||||
"") sv_num=5 ;;
|
||||
*)
|
||||
echo "Unknown scheme variant: $scheme_variant_str" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
kde-material-you-colors "$mode_flag" --color "$color" -sv "$sv_num"
|
||||
|
||||
Reference in New Issue
Block a user