/ de-omarchy / bin / omarchy-refresh-sddm
swadhinbiswas SDDM: port upstream Omarchy login theme with Hyprland greeter · 8/24/2026
211249e
21 lines · 643 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=Refresh the SDDM login theme from the runtime copy
# omarchy:group=sddm
# omarchy:requires-sudo=true
# omarchy:examples=omarchy-refresh-sddm
set -euo pipefail

OMARCHY_PATH="${OMARCHY_PATH:-/usr/share/de-omarchy}"

if [[ ! -d /usr/share/sddm/themes ]]; then
  echo "SDDM is not installed — nothing to refresh." >&2
  exit 1
fi

sudo rm -rf /usr/share/sddm/themes/omarchy
sudo cp -r "$OMARCHY_PATH/default/sddm/omarchy" /usr/share/sddm/themes/omarchy
sudo cp "$OMARCHY_PATH/default/sddm/hyprland.lua" /usr/share/sddm/hyprland.lua

echo "SDDM theme refreshed — applies the next time the login screen appears."