/ de-omarchy / bin / omarchy-plymouth-current
swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
21 lines · 596 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# omarchy:summary=Show which theme is styling the Plymouth boot screen
# omarchy:examples=omarchy plymouth current

# omarchy-plymouth-set installs the theme's unlock.png as a byte-for-byte
# copy of logo.png, so matching it back identifies the current theme.
installed_logo=/usr/share/plymouth/themes/omarchy/logo.png

if cmp -s "$OMARCHY_PATH/default/plymouth/logo.png" "$installed_logo"; then
  echo default
  exit
fi

omarchy-plymouth-list | while read -r name; do
  if cmp -s "$(omarchy-theme-dir "$name")/unlock.png" "$installed_logo"; then
    echo "$name"
    exit
  fi
done