Skip to content

Commit 9f8f17a

Browse files
wash2jackpot51
authored andcommitted
feat: confirm enter BIOS with cosmic-osd
1 parent d458992 commit 9f8f17a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/session/session-bios.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ is_gnome() {
1313
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
1414
}
1515

16-
if is_gnome; then
16+
is_cosmic() {
17+
command -v cosmic-osd >/dev/null && [ "$XDG_SESSION_DESKTOP" = "COSMIC" ]
18+
}
19+
20+
if is_cosmic; then
21+
cosmic-osd enter-bios
22+
elif is_gnome; then
1723
systemctl reboot --firmware-setup
1824
elif command -v systemctl >/dev/null; then
1925
systemctl reboot --firmware-setup

0 commit comments

Comments
 (0)