forked from Shinonome/dots-hyprland
material color generation: use aur pkg, change shebang
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/opt/materialyoucolor/bin/python3
|
#!/usr/bin/env python3
|
||||||
from material_color_utilities_python import *
|
from material_color_utilities_python import *
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -137,13 +137,6 @@ else ask_MicroTeX=true
|
|||||||
fi
|
fi
|
||||||
if $ask_MicroTeX;then showfun install-MicroTeX;v install-MicroTeX;fi
|
if $ask_MicroTeX;then showfun install-MicroTeX;v install-MicroTeX;fi
|
||||||
|
|
||||||
if $(test -d /opt/materialyoucolor); then
|
|
||||||
echo -e "\e[33m[$0]: Program \"MatertialYouColor-python\" already exists, no need to install.\e[0m"
|
|
||||||
echo -e "\e[34mYou can reinstall it in order to update to the latest version anyway.\e[0m"
|
|
||||||
ask_MaterialYouColor=$ask
|
|
||||||
else ask_MaterialYouColor=true
|
|
||||||
fi
|
|
||||||
showfun install-materialyoucolors;v install-materialyoucolors;
|
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
printf "\e[36m[$0]: 3. Copying\e[97m\n"
|
printf "\e[36m[$0]: 3. Copying\e[97m\n"
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ tinyxml2 gtkmm3 gtksourceviewmm cairomm
|
|||||||
|
|
||||||
### Python
|
### Python
|
||||||
# Add `python-setuptools-scm` and `python-wheel` explicitly to fix #197
|
# Add `python-setuptools-scm` and `python-wheel` explicitly to fix #197
|
||||||
python-build python-material-color-utilities python-pillow python-poetry python-pywal python-setuptools-scm python-wheel
|
python-build python-material-color-utilities python-materialyoucolor-git python-pillow python-poetry python-pywal python-setuptools-scm python-wheel
|
||||||
|
|
||||||
### Basic graphic env
|
### Basic graphic env
|
||||||
hyprland-git xorg-xrandr
|
hyprland-git xorg-xrandr
|
||||||
|
|||||||
@@ -101,10 +101,3 @@ install-MicroTeX (){
|
|||||||
x sudo cp ./LaTeX /usr/local/bin/
|
x sudo cp ./LaTeX /usr/local/bin/
|
||||||
x cd $base
|
x cd $base
|
||||||
}
|
}
|
||||||
|
|
||||||
install-materialyoucolors () {
|
|
||||||
x sudo python -m venv /opt/materialyoucolor
|
|
||||||
x source /opt/materialyoucolor/bin/activate
|
|
||||||
x sudo pip install material-color-utilities-python materialyoucolor
|
|
||||||
x deactivate
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user