feat: confirm enter BIOS with cosmic-osd

This commit is contained in:
Ashley Wulber 2025-01-21 13:18:03 -05:00 committed by Jeremy Soller
parent d4589925ca
commit 9f8f17a783

View file

@ -13,7 +13,13 @@ is_gnome() {
dbus-send --print-reply --dest=org.gnome.Shell /org/gnome/Shell org.freedesktop.DBus.Properties.Get string:org.gnome.Shell string:ShellVersion >/dev/null 2>&1 dbus-send --print-reply --dest=org.gnome.Shell /org/gnome/Shell org.freedesktop.DBus.Properties.Get string:org.gnome.Shell string:ShellVersion >/dev/null 2>&1
} }
if is_gnome; then is_cosmic() {
command -v cosmic-osd >/dev/null && [ "$XDG_SESSION_DESKTOP" = "COSMIC" ]
}
if is_cosmic; then
cosmic-osd enter-bios
elif is_gnome; then
systemctl reboot --firmware-setup systemctl reboot --firmware-setup
elif command -v systemctl >/dev/null; then elif command -v systemctl >/dev/null; then
systemctl reboot --firmware-setup systemctl reboot --firmware-setup