在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mateosss/matter开源软件地址(OpenSource Url):https://github.com/mateosss/matter开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):MatterMinimalist grub theme originally inspired by material design 2. Feel free to open issues for any problem or request you have and/or submit pull requests. Index
DownloadIt is strongly advised to put the downloaded files in some folder that will
not get deleted, as the main script DependenciesMatter will inform you of any missing dependencies, but here is a list anyways:
UsageHelpYou always can see the command reference with Quick StartNote for Fedora users (click to show)Matter does not yet support The Boot Loader
Specification so before executing
See this issue for updates or if you want to help out with fedora support Note for users with screen resolution other than 1920x1080 (click to show)Matter layout might break in other resolutions with the default installation,
you might need to tweak the See this issue for more information. Following is a Matter installation with default values. Don't worry, it is very easy to rollback or overwrite this installation later if you want to. The script that does all the work is ./matter.py It outputs almost everything you need to know for later, but for now let's focus on the list it shows, those are your grub entries. It should look similar to this one: 1. Ubuntu
2. Windows
3. More Options
4. Ubuntu, with Linux 5.3.0-61-generic
5. Ubuntu, with Linux 5.3.0-61-generic (recovery mode)
6. Ubuntu, with Linux 5.3.0-59-generic
7. Ubuntu, with Linux 5.3.0-59-generic (recovery mode)
8. System Setup Now you should pick some icons from https://materialdesignicons.com for each entry
listed (you only need the icon's name, use the search panel and hover over any
icon you like to see its name). For this example I will pick # Installs matter with icons matching the corresponding entries
./matter.py -i ubuntu microsoft-windows folder _ _ _ _ cog And thats it! If you reboot now, you should get something like this: Tip: If you need to tidy up your grub entries hierarchy and names I recommend using grub-customizer (tutorial). UninstallYou can completely remove Matter from your system with FontsMatter uses ./matter.py -ff ~/fonts/Cinzel/Cinzel-Regular.ttf -fn Cinzel Regular -fs 40
Tip: Google Fonts is a good place to get fonts ColorsYou can specify the color of 4 elements: ./matter.py -hl FFC107 -fg white -bg 2196f3 -ic pink Images (unfinished)You can specify a background image with Here is an example of the syntax: ./matter.py -im ~/Pictures/some-cool-image-that-has-good-contrast-with-my-text-color.png You can also specify an URL with --downloadbackground/-dlbg to automatically download an image from the internet. The image will be converted to png so it doesn't need to be a grub-compatible 8-bit jpg. It should be in the ./matter.py -dlbg "https://source.unsplash.com/1920x1080/?nature" Testing Without RebootingIf you install the ./matter.py -t -b -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl FFC107 -fg white -bg 2196F3 \
-ff ~/fonts/MuseoModerno/static/MuseoModerno-Regular.ttf \
-fn MuseoModerno Regular -fs 40 Note: it will use your system's grub.cfg, so set your icons beforehand. What does Matter do to my system files?Besides the need for the extracted files to be in a persistent location, Matter needs to edit three files:
Also it places the theme files in Both (1) and (3) are clearly distinguished with special All of these modifications are completely cleaned up by uninstalling GalleryHere are some examples with their respective commands that you can copy or get inspired from. Example 1Font: Josefin Sans Regular 400 # Light version, invert -fg and -bg for dark one
./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl ef233c -fg 2b2d42 -bg edf2f4 \
-ff ~/fonts/Josefin_Sans/static/JosefinSans-Regular.ttf \
-fn Josefin Sans Regular -fs 32 Example 2Font: Comfortaa Medium 500 ./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl white -fg f0f0f0 -bg ff0d7b \
-ff ~/fonts/Comfortaa/static/Comfortaa-Medium.ttf \
-fn Comfortaa Regular -fs 32 Example 3Font: Lobster Regular 400 ./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl 118ab2 -fg ffd166 -bg 073b4c \
-ff ~/fonts/Lobster/Lobster-Regular.ttf \
-fn Lobster Regular -fs 32 Example 4Fonts: Bebas Neue Regular 400 and Russo One Regular 400 # Using Bebas Neue font (more compact), the other uses Russo One
./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl 2c251b -fg 2c251b -bg ffe70b \
-ff ~/fonts/Bebas_Neue/BebasNeue-Regular.ttf \
-fn Bebas Neue Regular -fs 36
# -ff ~/fonts/Russo_One/RussoOne-Regular.ttf \
# -fn Russo One Regular -fs 36
Example 5Font: Poiret One Regular 400 ./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl black -fg 101010 -bg fce1e0 \
-ff ~/fonts/Poiret_One/PoiretOne-Regular.ttf \
-fn Poiret One Regular -fs 48 Example 6Font: Josefin Sans Medium 500 ./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl ffe78a -fg fdf7f9 -bg 582335 \
-ff ~/fonts/Josefin_Sans/static/JosefinSans-Medium.ttf \
-fn Josefin Sans Regular -fs 32 Example 7Font: Josefin Slab Bold 700 ./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl A4E11E -fg white -bg 5b1ee1 \
-ff ~/fonts/Josefin_Slab/JosefinSlab-Bold.ttf \
-fn Josefin Slab Bold -fs 36 Example 8Font: MuseoModerno Regular 400 ./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl FFC107 -fg white -bg 2196F3 \
-ff ~/fonts/MuseoModerno/static/MuseoModerno-Regular.ttf \
-fn MuseoModerno Regular -fs 32 Example 9Font: Amatic SC Regular 400 ./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-bg FFF8E1 -fg 263238 -hl E91E63 \
-ff ~/fonts/Amatic_SC/AmaticSC-Regular.ttf \
-fn Amatic SC Regular -fs 64 Example 10Font: Cinzel Regular 400 # This is the light version, the dark one uses -bg 1a1d21 -fg c9a45b instead
./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-hl c28f2c -bg white -fg d0a85c \
-ff ~/fonts/Cinzel/Cinzel-Regular.ttf \
-fn Cinzel Regular -fs 40
# -hl c28f2c -bg 1a1d21 -fg c9a45b \ Example 11./matter.py -i ubuntu microsoft-windows folder _ _ _ _ _ _ cog \
-im ~/images/material-background.png ContributingFeel free to submit any pull request that improves in any way the project. Read the wiki https://github.com/mateosss/matter/wiki, that's where any useful information for developers will reside. If you think you got a nice result out of Matter and would like to share it, please create an issue with it! I would love to see your results. Thanks
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论