🔧 chore(latest): latest

This commit is contained in:
Brian Zalewski 2023-01-12 06:20:13 +00:00
parent 0b2ff105ef
commit 233bbbe8fb
2 changed files with 10 additions and 10 deletions

View file

@ -21,7 +21,7 @@ if [ -d /usr/local/share/grub/themes ]; then
sudo cp -rf /usr/local/share/grub/themes /boot/grub2/ sudo cp -rf /usr/local/share/grub/themes /boot/grub2/
logg success 'Copied GRUB themes in /usr/local/share/grub/themes to /boot/grub2/themes' logg success 'Copied GRUB themes in /usr/local/share/grub/themes to /boot/grub2/themes'
else else
logg warn '`/usr/local/share/grub/themes` is missing' logg warn '/usr/local/share/grub/themes is missing'
fi fi
### Set default GRUB screen resolution variables ### Set default GRUB screen resolution variables
@ -37,10 +37,10 @@ if command -v xrandr > /dev/null && command -v uniq > /dev/null; then
logg success "Screen detected as $SCREEN_WIDTH x $SCREEN_HEIGHT (ratio of $SCREEN_RATIO)" logg success "Screen detected as $SCREEN_WIDTH x $SCREEN_HEIGHT (ratio of $SCREEN_RATIO)"
if (( $(echo "$SCREEN_RATIO $SCREEN_RATIO_ULTRAWIDE" | awk '{print ($1 > $2)}') )); then if (( $(echo "$SCREEN_RATIO $SCREEN_RATIO_ULTRAWIDE" | awk '{print ($1 > $2)}') )); then
GRUB_RESOLUTION_TYPE="ultrawide" GRUB_RESOLUTION_TYPE="ultrawide"
logg info 'GRUB resolution registered as `ultrawide`' logg info 'GRUB resolution registered as ultrawide'
fi fi
else else
logg warn 'Missing either `xrandr` or `uniq` (required for calculating screen size ratio)' logg warn 'Missing either xrandr or uniq (required for calculating screen size ratio)'
fi fi
### Optimize the GRUB resolution ### Optimize the GRUB resolution
@ -126,16 +126,16 @@ if ! command -v grub2-mkconfig > /dev/null; then
fi fi
### Apply GRUB2 theme ### Apply GRUB2 theme
# Set `export DEBUG_MODE=true` to bypass GRUB2 / Plymouth application # Set export DEBUG_MODE=true to bypass GRUB2 / Plymouth application
if [ "$DEBUG_MODE" != 'true' ]; then if [ "$DEBUG_MODE" != 'true' ]; then
if [ -d /sys/firmware/efi ]; then if [ -d /sys/firmware/efi ]; then
logg info 'Assuming system is UEFI-enabled since /sys/firmware/efi is present' logg info 'Assuming system is UEFI-enabled since /sys/firmware/efi is present'
if [ -f /boot/efi/EFI/qubes/grub.cfg ]; then if [ -f /boot/efi/EFI/qubes/grub.cfg ]; then
logg info 'Running `sudo grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg`' logg info 'Running sudo grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg'
sudo grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg sudo grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
logg success 'Applied GRUB2 theme' logg success 'Applied GRUB2 theme'
elif [ -f /boot/efi/EFI/grub.cfg ]; then elif [ -f /boot/efi/EFI/grub.cfg ]; then
logg info 'Running `sudo grub2-mkconfig -o /boot/efi/EFI/grub.cfg`' logg info 'Running sudo grub2-mkconfig -o /boot/efi/EFI/grub.cfg'
sudo grub2-mkconfig -o /boot/efi/EFI/grub.cfg sudo grub2-mkconfig -o /boot/efi/EFI/grub.cfg
logg success 'Applied GRUB2 theme' logg success 'Applied GRUB2 theme'
else else
@ -143,7 +143,7 @@ if [ "$DEBUG_MODE" != 'true' ]; then
fi fi
else else
logg info 'Assuming system is non-UEFI since /sys/firmware/efi is not present' logg info 'Assuming system is non-UEFI since /sys/firmware/efi is not present'
logg info 'Running `sudo grub2-mkconfig -o /boot/grub2/grub.cfg`' logg info 'Running sudo grub2-mkconfig -o /boot/grub2/grub.cfg'
sudo grub2-mkconfig -o /boot/grub2/grub.cfg sudo grub2-mkconfig -o /boot/grub2/grub.cfg
logg success 'Applied GRUB2 theme' logg success 'Applied GRUB2 theme'
fi fi

View file

@ -8,13 +8,13 @@
### Fix for Ubuntu default extension conflicting with dash-to-dock ### Fix for Ubuntu default extension conflicting with dash-to-dock
if dconf read /org/gnome/shell/enabled-extensions | grep dash-to-dock > /dev/null; then if dconf read /org/gnome/shell/enabled-extensions | grep dash-to-dock > /dev/null; then
if [ -d "/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com" ]; then if [ -d '/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com' ]; then
if [ ! -d /usr/share/gnome-shell/extensions/disabled ] if [ ! -d /usr/share/gnome-shell/extensions/disabled ]
sudo mkdir /usr/share/gnome-shell/extensions/disabled sudo mkdir /usr/share/gnome-shell/extensions/disabled
logg info 'Created /usr/share/gnome-shell/extensions/disabled for GNOME extensions that have issues' logg info 'Created /usr/share/gnome-shell/extensions/disabled for GNOME extensions that have issues'
fi fi
sudo mv /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com /usr/share/gnome-shell/extensions/disabled/ubuntu-dock@ubuntu.com sudo mv '/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com' '/usr/share/gnome-shell/extensions/disabled/ubuntu-dock@ubuntu.com'
logg info 'Moved `ubuntu-dock@ubuntu.com` to the disabled extension folder' logg info 'Moved ubuntu-dock@ubuntu.com to the disabled extension folder'
fi fi
fi fi