2022-11-03 20:37:48 +08:00
|
|
|
# Tokyo-Night for [GRUB](https://gnu.org/software/grub/)
|
|
|
|
|
2022-11-09 00:03:24 +08:00
|
|
|
![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)![Arch](https://img.shields.io/badge/Arch%20Linux-1793D1?logo=arch-linux&logoColor=fff&style=for-the-badge)
|
|
|
|
|
2022-11-03 20:37:48 +08:00
|
|
|
> A dark theme for [GRUB](https://gnu.org/software/grub/).
|
|
|
|
Basically just minor tweaks of Dracula grub that I made to go along with my
|
|
|
|
[arch i3 rice](https://github.com/mino29/arch-i3).
|
|
|
|
|
|
|
|
![Screenshot](./screenshot.png)
|
|
|
|
|
2022-11-04 22:11:21 +08:00
|
|
|
This can adapt to various resolustions of screens, at least my 1080p screen
|
2022-11-03 20:37:48 +08:00
|
|
|
worked just fine.
|
|
|
|
|
2022-11-04 23:35:39 +08:00
|
|
|
## Compatibility
|
|
|
|
> It should be compatible with all linux distros that uses grub
|
|
|
|
|
2022-11-04 23:36:37 +08:00
|
|
|
But I only used ubuntu, fedora and arch so far, so your mileage may vary.
|
2022-11-04 23:35:39 +08:00
|
|
|
|
2022-11-03 20:37:48 +08:00
|
|
|
## Install
|
|
|
|
|
|
|
|
Steps:
|
|
|
|
|
|
|
|
1. clone this repo or download the .zip
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/mino29/tokyo-night-grub.git
|
|
|
|
```
|
|
|
|
|
2023-04-22 19:58:11 +05:30
|
|
|
2. Change directory
|
|
|
|
|
|
|
|
```
|
|
|
|
cd tokyo-night-grub
|
|
|
|
```
|
|
|
|
|
|
|
|
3. copy the whole tokyo-night directory grub themes
|
2022-11-03 20:37:48 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo cp -r tokyo-night /boot/grub/themes
|
|
|
|
```
|
|
|
|
|
2023-04-22 19:58:11 +05:30
|
|
|
4. edit grub file
|
2022-11-03 20:37:48 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
sudo vim /etc/default/grub
|
|
|
|
```
|
|
|
|
change `#GRUB_THEME=` to
|
2022-11-05 18:23:52 +08:00
|
|
|
`GRUB_THEME="/boot/grub/themes/tokyo-night/theme.txt"`
|
2022-11-03 20:37:48 +08:00
|
|
|
|
2023-04-22 19:58:11 +05:30
|
|
|
5. use magic and reboot
|
2022-11-03 20:37:48 +08:00
|
|
|
|
|
|
|
run this command
|
|
|
|
```
|
|
|
|
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
```
|
2022-11-03 20:43:58 +08:00
|
|
|
then reboot and voila
|
2022-11-03 20:37:48 +08:00
|
|
|
|
|
|
|
## Potential problems and solutions
|
|
|
|
|
|
|
|
Oh oh, can't see grub menu or boot into arch linux?
|
|
|
|
|
|
|
|
Grub on Arch Linux can be a pain to deal with recently.
|
|
|
|
After I change the theme and reboot and cannot boot into my Arch Linux, had to
|
|
|
|
do a "chroot", but worry not, here's what you need:
|
|
|
|
|
|
|
|
- USB drive with arch iso
|
|
|
|
- 15 minutes of free time
|
|
|
|
- Stable internet connection
|
2022-11-04 22:11:21 +08:00
|
|
|
- [this on-point article](https://www.jeremymorgan.com/tutorials/linux/how-to-reinstall-boot-loader-arch-linux/)
|
2022-11-03 20:37:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
## Credit
|
|
|
|
|
2022-11-03 20:44:33 +08:00
|
|
|
- [Cute Ghost profile](https://www.flaticon.com/free-icon/ghost_1150381?term=ghost&page=1&position=52&page=1&position=52&related_id=1150381&origin=style)
|
|
|
|
- [Dracula Grub](https://draculatheme.com/grub)
|
2022-11-03 20:37:48 +08:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[MIT License](./LICENSE)
|