colors generations based on wallpaper
This commit is contained in:
23
.config/matugen/config.toml
Normal file
23
.config/matugen/config.toml
Normal file
@@ -0,0 +1,23 @@
|
||||
[config.wallaper]
|
||||
command = "swww"
|
||||
arguments = ["img", "--transition-duration", "1", "--transition-type", "grow", "--transition-fps", "60", "--transition-pos", "0.5,0.9"]
|
||||
set = false
|
||||
|
||||
[templates.waybar]
|
||||
input_path = './templates/colors.css'
|
||||
output_path = '~/.config/waybar/colors.css'
|
||||
|
||||
[templates.rofi]
|
||||
input_path = './templates/colors.rasinc'
|
||||
output_path = '~/.config/rofi/colors.rasinc'
|
||||
post_hook = 'sed -i "s/_/-/g" ~/.config/rofi/colors.rasinc'
|
||||
|
||||
[templates.swaync]
|
||||
input_path = './templates/colors.css'
|
||||
output_path = '~/.config/swaync/colors.css'
|
||||
post_hook = 'swaync-client -rs'
|
||||
|
||||
[templates.hyprland]
|
||||
input_path = './templates/colors.conf'
|
||||
output_path = '~/.config/hypr/colors.conf'
|
||||
post_hook = 'sed -i "s/, /,/g" ~/.config/hypr/colors.conf'
|
||||
8
.config/matugen/set-wallpaper.sh
Executable file
8
.config/matugen/set-wallpaper.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
swww img --transition-duration 1 --transition-type grow --transition-fps 60 --transition-pos 0.5,0.9 $1
|
||||
if [ -z $2 ]; then
|
||||
matugen image $1 -m dark
|
||||
else
|
||||
matugen image $1 -m $2
|
||||
fi
|
||||
sed -i "s_\~.*--transition-duration_$1 --transition-duration_" ~/.config/hypr/lastWallpaper.conf
|
||||
sed -i "s_/\w*/\w*_\~_" ~/.config/hypr/lastWallpaper.conf
|
||||
7
.config/matugen/templates/colors.conf
Normal file
7
.config/matugen/templates/colors.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Css Colors
|
||||
# Generated with Matugen
|
||||
#
|
||||
<* for name, value in colors *>
|
||||
${{name}} = {{value.default.rgb}}
|
||||
<* endfor *>
|
||||
7
.config/matugen/templates/colors.css
Normal file
7
.config/matugen/templates/colors.css
Normal file
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
* Css Colors
|
||||
* Generated with Matugen
|
||||
*/
|
||||
<* for name, value in colors *>
|
||||
@define-color {{name}} {{value.default.hex}};
|
||||
<* endfor *>
|
||||
9
.config/matugen/templates/colors.rasinc
Normal file
9
.config/matugen/templates/colors.rasinc
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Css Colors
|
||||
* Generated with Matugen
|
||||
*/
|
||||
* {
|
||||
<* for name, value in colors *>
|
||||
{{name}}: {{value.default.hex}};
|
||||
<* endfor *>
|
||||
}
|
||||
Reference in New Issue
Block a user