Compare commits
129 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f6ab2438e1 | |||
| 42c232dfb4 | |||
| 24ac05a101 | |||
| 92fc1c9686 | |||
| 55aef0cada | |||
| 47a6467e27 | |||
| faf75d2a7f | |||
| 85db6e7cea | |||
| 3e7139701e | |||
| a697a28fe6 | |||
| 610bc23012 | |||
| a2b3fa071b | |||
| 18ea3defc5 | |||
| 326a27a6f2 | |||
| d73179c4ea | |||
| daa8aef95f | |||
| 9aa7e35d71 | |||
| 7cff52a245 | |||
| e3a5ea51ae | |||
| fa5ec95db0 | |||
| 454f4c6d92 | |||
| 97ddfd915b | |||
| d522f301ef | |||
| cb1539e4e8 | |||
| 775e4f7487 | |||
| 8357e49262 | |||
| a69383892e | |||
| 896ca7f9c9 | |||
| c47af2ef5d | |||
| 0628270f03 | |||
| d9316d1acc | |||
| ce56cfb5c6 | |||
| b732fe3fad | |||
| a9dab5cce1 | |||
| 30be255898 | |||
| 8ddd471937 | |||
| 704cef3017 | |||
| 515ce57ffb | |||
| a634923206 | |||
| 8c9aade1fa | |||
| 0d7ea30481 | |||
| 179e2c21a1 | |||
| 3fa5e0f312 | |||
| eda1b86dd8 | |||
| d296515893 | |||
| 82c47cfa55 | |||
| d5c82f7213 | |||
| 42aa89641b | |||
| 9f0d2837ed | |||
| 000171da27 | |||
| 9843327eb6 | |||
| c8f6113801 | |||
| de378454b5 | |||
| 7da365a621 | |||
| f07021174e | |||
| f3fc65d3a2 | |||
| 960ac1a172 | |||
| 02ec0a888b | |||
| cd5fee4582 | |||
| 9c673d5a34 | |||
| 20c00af363 | |||
| 5a9e5b58a0 | |||
| 8d2f2e17b8 | |||
| c991e3a3a7 | |||
| bf840ebdb7 | |||
| 1358b497d9 | |||
| 8383f6b4f8 | |||
| 4c7bba04ac | |||
| 4deac71ab4 | |||
| 8cd0ea9b4a | |||
| c1f9aeaf83 | |||
| d0a481efa1 | |||
| 7c0d8eb784 | |||
| 8a5ebe97fa | |||
| bde73b88ed | |||
| bfedd16365 | |||
| 7e8a1ea758 | |||
| c106dfb9b5 | |||
| 7033bb66e5 | |||
| b0dca256c3 | |||
| ece050a022 | |||
| 530859b0b3 | |||
| 375b7d0f0a | |||
| 48338ec6a3 | |||
| e77cbfa662 | |||
| 967a302d8f | |||
| 7ab56dc587 | |||
| 8303aa2825 | |||
| b10a5fd4c8 | |||
| 8627f86ce5 | |||
| fd78958d50 | |||
| c6e2967f06 | |||
| 6b58676c4d | |||
| fa74d1b6af | |||
| 29dd80dd70 | |||
| 20a8f12488 | |||
| b5b4780418 | |||
| 3f5624833d | |||
| f4f3354233 | |||
| a4bff7bf91 | |||
| 86caf618c3 | |||
| 4f3b99cdf3 | |||
| 53f899da9c | |||
| 2fd6eb9b66 | |||
| 824064faa9 | |||
| 70ff68055b | |||
| e5b869f186 | |||
| 9e440c4bbc | |||
| 468bee78f5 | |||
| 9d244c9d07 | |||
| d27e1caf5f | |||
| 2824010b86 | |||
| f1e03b4949 | |||
| 41de75c50e | |||
| 9b66c890ba | |||
| fd0f0717e1 | |||
| 0f81ef2091 | |||
| 3f108a9037 | |||
| 1e27267eb4 | |||
| 3fb14ff13a | |||
| e1738a6706 | |||
| de33b1a2c3 | |||
| 748c4c4e93 | |||
| 8b0c63584b | |||
| 9527f1c408 | |||
| 0b16634d79 | |||
| 3f977c914f | |||
| 8851372401 | |||
| c6b7fdfc8f |
@@ -1,56 +1,102 @@
|
||||
```
|
||||
____ ____ _ _ ____ ____ _____ _ _ _____ __ __ _____ ____
|
||||
/ ___| _ \| | | | __ )___ \ |_ _| | | | ____| \/ | ____/ ___|
|
||||
| | _| |_) | | | | _ \ __) | | | | |_| | _| | |\/| | _| \___ \
|
||||
| |_| | _ <| |_| | |_) / __/ | | | _ | |___| | | | |___ ___) |
|
||||
\____|_| \_\\___/|____/_____| |_| |_| |_|_____|_| |_|_____|____/
|
||||
|
||||
```
|
||||
|
||||
## Flat Design themes for Grub
|
||||

|
||||
|
||||
## Installation:
|
||||
|
||||
Usage: `sudo ./install.sh [OPTIONS...]`
|
||||
```
|
||||
-t, --theme theme variant(s) [tela|vimix|stylish|whitesur] (default is tela)
|
||||
-i, --icon icon variant(s) [color|white|whitesur] (default is color)
|
||||
-s, --screen screen display variant(s) [1080p|2k|4k|ultrawide|ultrawide2k] (default is 1080p)
|
||||
-c, --custom-resolution set custom resolution (e.g., 1600x900) (disabled in default)
|
||||
-r, --remove remove theme [tela|vimix|stylish|whitesur] (must add theme name option, default is tela)
|
||||
|
||||
| Options: | Description: |
|
||||
|:-----------------------|:-------------|
|
||||
| -b, --boot | Install grub theme into `/boot/grub/themes` |
|
||||
| -t, --theme | theme variant(s) [tela/vimix/stylish/slaze/whitesur] (default is tela)"
|
||||
| -i, --icon | icon variant(s) [color/white/whitesur] (default is color)"
|
||||
| -s, --screen | screen resolution variant(s) [1080p/2k/4k/ultrawide/ultrawide2k] (default is 1080p)"
|
||||
| -r, --remove [THEME] | Uninstall selected theme |
|
||||
| -h, --help | Show this help |
|
||||
-b, --boot install theme into '/boot/grub' or '/boot/grub2'
|
||||
-g, --generate do not install but generate theme into chosen directory (must add your directory)
|
||||
|
||||
_If no options are used, a user interface `dialog` will show up instead_
|
||||
-h, --help show this help
|
||||
```
|
||||
*If no options are used, a user interface *`dialog`* will show up instead*
|
||||
|
||||
### Examples:
|
||||
- Install Tela theme on 2k display device:
|
||||
- `sudo ./install.sh -t tela -s 2k`
|
||||
|
||||
```sh
|
||||
sudo ./install.sh -t tela -s 2k
|
||||
```
|
||||
- Install Tela theme with custom resolution:
|
||||
```sh
|
||||
sudo ./install.sh -t tela -c 1600x900
|
||||
```
|
||||
- Install Tela theme into /boot/grub/themes:
|
||||
- `sudo ./install.sh -b -t tela`
|
||||
|
||||
```sh
|
||||
sudo ./install.sh -b -t tela
|
||||
```
|
||||
- Uninstall Tela theme:
|
||||
- `sudo ./install.sh -r -t tela`
|
||||
```sh
|
||||
sudo ./install.sh -r -t tela
|
||||
```
|
||||
|
||||
## Installation with NixOS:
|
||||
To use this theme with NixOS you will have to enable [flakes](https://wiki.nixos.org/wiki/flakes). Before you do this, please inform yourself if you really want to, because flakes are still an unstable feature.
|
||||
First you will have to add grub2 to your `flake.nix` file as a new input.
|
||||
```nix
|
||||
# flake.nix
|
||||
{
|
||||
description = "NixOS configuration";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
# Add grub2 themes to your inputs ...
|
||||
grub2-themes = {
|
||||
url = "github:vinceliuice/grub2-themes";
|
||||
};
|
||||
};
|
||||
outputs = inputs@{ nixpkgs, grub2-themes, ... }: {
|
||||
nixosConfigurations = {
|
||||
my_host = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
# ... and then to your modules
|
||||
modules = [
|
||||
./configuration.nix
|
||||
grub2-themes.nixosModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
After that, you can configure the theme as shown below. In this example it is inside the `configuration.nix` file but it can be any file you choose.
|
||||
```nix
|
||||
# configuration.nix
|
||||
{ inputs, config, pkgs, lib, ... }:
|
||||
{
|
||||
boot.loader.grub = { ... };
|
||||
boot.loader.grub2-theme = {
|
||||
enable = true;
|
||||
theme = "stylish";
|
||||
footer = true;
|
||||
customResolution = "1600x900"; # Optional: Set a custom resolution
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Issues / tweaks:
|
||||
|
||||
### Correcting display resolution:
|
||||
|
||||
- On the grub screen, press `c` to enter the command line
|
||||
- Enter `vbeinfo` or `videoinfo` to check available resolutions
|
||||
- Open `/etc/default/grub`, and edit `GRUB_GFXMODE=[height]x[width]x32` to match your resolution
|
||||
- Finally, run `grub-mkconfig -o /boot/grub/grub.cfg` to update your grub config
|
||||
|
||||
### Setting a custom background:
|
||||
|
||||
- Make sure you have `imagemagick` installed, or at least something that provides `convert`
|
||||
- Find the resolution of your display, and make sure your background matches the resolution
|
||||
- (1920x1080 -> --1080p, 2560x1080 -> --ultrawide, 2560x1440 -> --2k, 3440x1440 -> --ultrawide2k, 3840x2160 -> --4k)
|
||||
- 1920x1080 >> 1080p
|
||||
- 2560x1080 >> ultrawide
|
||||
- 2560x1440 >> 2k
|
||||
- 3440x1440 >> ultrawide2k
|
||||
- 3840x2160 >> 4k
|
||||
- Place your custom background inside the root of the project, and name it `background.jpg`
|
||||
- Run the installer like normal, but with -s `[YOUR_RESOLUTION]` and -t `[THEME]` and -i `[ICON]`
|
||||
- Make sure to replace `[YOUR_RESOLUTION]` with your resolution and `[THEME]` with the theme
|
||||
- Alternatively, use the `-c` option to set a custom resolution
|
||||
|
||||
## Contributing:
|
||||
- If you made changes to icons, or added a new one:
|
||||
@@ -59,24 +105,11 @@ _If no options are used, a user interface `dialog` will show up instead_
|
||||
- Create a pull request from your branch or fork
|
||||
- If any issues occur, report then to the [issue](https://github.com/vinceliuice/grub2-themes/issues) page
|
||||
|
||||
## Screenshots:
|
||||
|
||||
### Vimix grub theme:
|
||||
|
||||

|
||||
|
||||
### Stylish grub theme:
|
||||
|
||||

|
||||
|
||||
### Tela grub theme:
|
||||
|
||||

|
||||
|
||||
### Slaze grub theme:
|
||||
|
||||

|
||||
## Preview:
|
||||

|
||||
|
||||
## Documents
|
||||
http://wiki.rosalab.ru/en/index.php/Grub2_theme_/_reference
|
||||
http://wiki.rosalab.ru/en/index.php/Grub2_theme_tutorial
|
||||
|
||||
[Grub2 theme reference](https://wiki.rosalab.ru/en/index.php/Grub2_theme_/_reference)
|
||||
|
||||
[Grub2 theme tutorial](https://wiki.rosalab.ru/en/index.php/Grub2_theme_tutorial)
|
||||
|
||||
|
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 527 B |
|
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 527 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 794 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 964 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 527 B |
|
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 527 B |
|
After Width: | Height: | Size: 1023 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 584 B |
|
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 770 B |
|
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 770 B |
|
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 974 B After Width: | Height: | Size: 871 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1005 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1005 B |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1005 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1005 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 112 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 112 B |
|
After Width: | Height: | Size: 414 B |
|
After Width: | Height: | Size: 549 B |
|
After Width: | Height: | Size: 646 B |
|
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 638 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 112 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 112 B |
|
After Width: | Height: | Size: 608 B |
|
After Width: | Height: | Size: 588 B |
|
After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 154 B |
|
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 156 B |
|
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 156 B |
|
After Width: | Height: | Size: 599 B |
|
After Width: | Height: | Size: 756 B |
|
After Width: | Height: | Size: 1016 B |
|
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 1013 B |
|
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 156 B |
|
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 156 B |
|
After Width: | Height: | Size: 916 B |
|
After Width: | Height: | Size: 889 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 229 B |
|
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 151 B |
|
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 151 B |
|
After Width: | Height: | Size: 819 B |
|
After Width: | Height: | Size: 996 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 871 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 151 B |
|
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 151 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 232 B |
|
Before Width: | Height: | Size: 940 B After Width: | Height: | Size: 912 B |
|
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 875 B |
|
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 587 B |
|
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 587 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 944 B |
|
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 766 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 843 B After Width: | Height: | Size: 823 B |
|
Before Width: | Height: | Size: 840 B After Width: | Height: | Size: 825 B |
|
After Width: | Height: | Size: 679 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 994 B After Width: | Height: | Size: 958 B |
|
Before Width: | Height: | Size: 1004 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 755 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1004 B After Width: | Height: | Size: 960 B |
|
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 738 B |
|
Before Width: | Height: | Size: 950 B After Width: | Height: | Size: 895 B |