From 4fbd7509166fee1c91947463c7f934f3c43c8579 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 7 May 2026 15:09:53 +0200 Subject: [PATCH 1/2] Add note about correct perms for migrations --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index c5eea9b8..cc9ec853 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -107,6 +107,7 @@ This copies `~/.local/share/omarchy/config/hypr/hyprlock.conf` to `~/.config/hyp To create a new migration, run `omarchy-dev-add-migration --no-edit`. This creates a migration file named after the unix timestamp of the last commit. New migration format: +- File permissions must be `0644` (`-rw-r--r--`); migrations are sourced, not executed directly - No shebang line - Start with an `echo` describing what the migration does - Use `$OMARCHY_PATH` to reference the omarchy directory From 6f03b72870c457ac9badb240f61ece5fec85a3c7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 7 May 2026 15:12:25 +0200 Subject: [PATCH 2/2] Start hyprland for sddm without producing errors --- install/login/sddm.sh | 2 +- migrations/1778148645.sh | 3 ++- migrations/1778158938.sh | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 migrations/1778158938.sh diff --git a/install/login/sddm.sh b/install/login/sddm.sh index c3410e5d..f97243cb 100644 --- a/install/login/sddm.sh +++ b/install/login/sddm.sh @@ -12,7 +12,7 @@ cat </dev/null DisplayServer=wayland [Wayland] -CompositorCommand=Hyprland --config /usr/share/sddm/hyprland.conf +CompositorCommand=start-hyprland -- --config /usr/share/sddm/hyprland.conf EOF if [[ ! -f /etc/sddm.conf.d/autologin.conf ]]; then diff --git a/migrations/1778148645.sh b/migrations/1778148645.sh index d9bc031c..c085858e 100644 --- a/migrations/1778148645.sh +++ b/migrations/1778148645.sh @@ -1,10 +1,11 @@ echo "Configure SDDM to use Wayland for the greeter" +sudo cp "$OMARCHY_PATH/default/sddm/hyprland.conf" /usr/share/sddm/hyprland.conf sudo mkdir -p /etc/sddm.conf.d cat </dev/null [General] DisplayServer=wayland [Wayland] -CompositorCommand=Hyprland +CompositorCommand=start-hyprland -- --config /usr/share/sddm/hyprland.conf EOF diff --git a/migrations/1778158938.sh b/migrations/1778158938.sh deleted file mode 100644 index fdd31f87..00000000 --- a/migrations/1778158938.sh +++ /dev/null @@ -1,5 +0,0 @@ -echo "Use a minimal Hyprland config for the SDDM Wayland greeter" - -sudo cp "$OMARCHY_PATH/default/sddm/hyprland.conf" /usr/share/sddm/hyprland.conf -sudo mkdir -p /etc/sddm.conf.d -sudo sed -i 's|^CompositorCommand=Hyprland$|CompositorCommand=Hyprland --config /usr/share/sddm/hyprland.conf|' /etc/sddm.conf.d/10-wayland.conf