Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ packages/folio-touch: Folio, MIT; David Heinemeier Hansson and contributors, htt
with the touch mode of https://github.com/OrchardLinux/folio (Henrik Klee).
Recipe: upstream Omarchy's (omacom/omarchy-pkgs pkgbuilds/folio, Maintainer: David Heinemeier Hansson)
as OrchardLinux/folio's omarchy-a branch packaged it (pkgbuild/omarchy-a, Henrik Klee).
packages/quickshell: Quickshell, LGPL-3.0-only; https://github.com/quickshell-mirror/quickshell.
Recipe, patches/load_qtquick_611.patch and the pacman hook: upstream Omarchy's (omacom/omarchy-pkgs
at 2be7cd983944f50612338124ec6725da95dceb2e, MIT, arch/LICENSE.omarchy), pinned by Berkay Kösebay.
ci/rank-mirrors, ci/pacman-download: Henrik Klee, from omarchy-a.

The armv7h build container is Arch Linux ARM's official root archive of 2026-08-05, fetched from the
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ built for both.
| `omactivity` | yes | yes | The touch task manager, from [OrchardLinux/omactivity](https://github.com/OrchardLinux/omactivity). Follows its releases (the published pin is newer than v0.1.0; its next release moves it). |
| `folio-touch` | yes | yes | Files: Folio with touch mode, from the `touch-mode` branch of [OrchardLinux/folio](https://github.com/OrchardLinux/folio), pinned to a commit until the fork tags a release newer than 0.4.0 (`v0.4.1`; its tag `a0.2.0-1` is no version tag). Provides `folio` and conflicts with upstream Omarchy's. |
| `omafox` | yes | yes | Firefox follows the Omarchy theme. |
| `quickshell` | yes | - | Omarchy's Quickshell snapshot (pinned revision, its QtQuick workaround and pacman hook) rebuilt against the Qt in Arch Linux ARM, so the shell does not warn at every start that it was built against another Qt. Replaces Omarchy's and Arch's `quickshell`. |
| `omacalc` | - | yes | Omarchy's calculator, which upstream Omarchy publishes for 64-bit only. |
| `omarchy-a` | yes | yes | Omarchy A's own files: the touch desktop, its configuration and system defaults, from [OrchardLinux/omarchy-a](https://github.com/OrchardLinux/omarchy-a), built with its Makefile. Follows its releases; nothing is built until its first release that builds this way. Conflicts with upstream Omarchy's `omarchy`. |
| `linux-orchard-apple-16k`, `linux-orchard-apple-4k` | yes | - | orchard's kernel, modules, the boards' device trees, initrd and hardware defaults for A9 and later (16 KiB pages) or A7 to A8X: an orchard release's platform layer, installed unchanged by a plain PKGBUILD and APKBUILD; orchard's installer installs this package. Its pacman hooks (apk: scripts and trigger) run orchard's `boot-entries`, which keeps the system's boot entries current and the previous kernel as a fallback. The two conflict. |
Expand Down
20 changes: 20 additions & 0 deletions packages/quickshell/arch/LICENSE.omarchy
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) David Heinemeier Hansson

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
69 changes: 69 additions & 0 deletions packages/quickshell/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Based on Omarchy's Quickshell recipe, pinned with its QtQuick workaround
# and compatibility hook at omacom/omarchy-pkgs@2be7cd983944f50612338124ec6725da95dceb2e.
pkgname=quickshell
pkgver=0.3.2.r7.g2b4501a
pkgrel=1.1
pkgdesc='Flexible toolkit for making desktop shells with QtQuick'
arch=('aarch64')
url='https://github.com/quickshell-mirror/quickshell'
license=('LGPL-3.0-only AND MIT')
depends=(
cpptrace
glibc
hicolor-icon-theme
jemalloc
libdrm
libgcc
libglvnd
libpipewire
libstdc++
libxcb
mesa
pam
polkit
qt6-base
qt6-declarative
qt6-svg
qt6-wayland
wayland
)
makedepends=(
cli11
cmake
ninja
qt6-shadertools
spirv-tools
vulkan-headers
wayland-protocols
)
conflicts=(quickshell-git)
_commit=2b4501a282689792b62e94f3fb30d8f512324fe6
source=("quickshell-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz"
load_qtquick_611.patch
quickshell-check.hook
LICENSE.omarchy)
sha256sums=('e09495c73f8bfbb8637a28e6d73bf84063631b49bb3cb6d3c9702c80dfa78f31'
'23b65d205d825f11a1cd8501acbc6e50250d09a6ce607e2ff8b3cf5d438bd0ce'
'8543e21aeaaa5441b73a679160e7601a957f16c433e8d6bd9257e80bd0e94083'
'717ba1949502290f8e47688ae2e323acd06c8ca47aec9f7596b15f678c1af4a2')

prepare() {
cd "${pkgname}-${_commit}"
patch -Np1 --fuzz=0 -i "${srcdir}/load_qtquick_611.patch"
}

build() {
cmake -S "${pkgname}-${_commit}" -B build -G Ninja \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D INSTALL_QML_PREFIX=lib/qt6/qml \
-D GIT_REVISION="${_commit}" \
-D DISTRIBUTOR='OrchardLinux'
cmake --build build
}

package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 quickshell-check.hook -t "${pkgdir}/usr/share/libalpm/hooks"
install -Dm644 "${pkgname}-${_commit}/LICENSE" LICENSE.omarchy -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
10 changes: 10 additions & 0 deletions packages/quickshell/arch/quickshell-check.hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Trigger]
Operation = Upgrade
Operation = Install
Type = Package
Target = qt6-base
Target = qt6-wayland
[Action]
Description = Querying Quickshell compatibility after Qt6 update...
When = PostTransaction
Exec = /usr/bin/quickshell --private-check-compat
203 changes: 203 additions & 0 deletions packages/quickshell/patches/load_qtquick_611.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
diff --git c/src/core/generation.cpp i/src/core/generation.cpp
index ad5dca2..878abbc 100644
--- c/src/core/generation.cpp
+++ i/src/core/generation.cpp
@@ -38,7 +38,7 @@ static QHash<const QQmlEngine*, EngineGeneration*> g_generations; // NOLINT
EngineGeneration::EngineGeneration(const QDir& rootPath, QmlScanner scanner)
: rootPath(rootPath)
, scanner(std::move(scanner))
- , urlInterceptor(this->rootPath)
+ , urlInterceptor(this->rootPath, this->scanner)
, interceptNetFactory(this->rootPath, this->scanner.fileIntercepts)
, engine(new QQmlEngine()) {
g_generations.insert(this->engine, this);
diff --git c/src/core/qsintercept.cpp i/src/core/qsintercept.cpp
index 6687681..8f14178 100644
--- c/src/core/qsintercept.cpp
+++ i/src/core/qsintercept.cpp
@@ -2,6 +2,7 @@
#include <cstring>

#include <qdir.h>
+#include <qfileinfo.h>
#include <qhash.h>
#include <qiodevice.h>
#include <qlogging.h>
@@ -16,6 +17,7 @@
#include <qurl.h>

#include "logcat.hpp"
+#include "scan.hpp"

QS_LOGGING_CATEGORY(logQsIntercept, "quickshell.interceptor", QtWarningMsg);

@@ -24,6 +26,13 @@ QUrl QsUrlInterceptor::intercept(
QQmlAbstractUrlInterceptor::DataType type
) {
auto url = originalUrl;
+ if (this->scanner.omarchyLoadPatch && type == QQmlAbstractUrlInterceptor::DataType::QmlFile
+ && url.isLocalFile())
+ {
+ auto path = QFileInfo(url.toLocalFile()).absoluteFilePath();
+ this->scanner.scanDir(QFileInfo(path).dir());
+ if (this->scanner.fileIntercepts.contains(path)) url.setScheme("qs");
+ }

if (url.scheme() == "root") {
url.setScheme("qs");
diff --git c/src/core/qsintercept.hpp i/src/core/qsintercept.hpp
index c3d8b55..ccfd651 100644
--- c/src/core/qsintercept.hpp
+++ i/src/core/qsintercept.hpp
@@ -14,14 +14,19 @@

QS_DECLARE_LOGGING_CATEGORY(logQsIntercept);

+class QmlScanner;
+
class QsUrlInterceptor: public QQmlAbstractUrlInterceptor {
public:
- explicit QsUrlInterceptor(const QDir& configRoot): configRoot(configRoot) {}
+ QsUrlInterceptor(const QDir& configRoot, QmlScanner& scanner)
+ : configRoot(configRoot)
+ , scanner(scanner) {}

QUrl intercept(const QUrl& originalUrl, QQmlAbstractUrlInterceptor::DataType type) override;

private:
QDir configRoot;
+ QmlScanner& scanner;
};

class QsInterceptDataReply: public QNetworkReply {
diff --git c/src/core/scan.cpp i/src/core/scan.cpp
index 9f33302..de443ba 100644
--- c/src/core/scan.cpp
+++ i/src/core/scan.cpp
@@ -14,6 +14,7 @@
#include <qlogging.h>
#include <qloggingcategory.h>
#include <qpair.h>
+#include <qregularexpression.h>
#include <qstring.h>
#include <qtextstream.h>

@@ -22,6 +23,12 @@

QS_LOGGING_CATEGORY(logQmlScanner, "quickshell.qmlscanner", QtWarningMsg);

+namespace {
+const auto unversionedQtQuickImport = QRegularExpression(
+ QStringLiteral(R"(^([ \t]*import[ \t]+QtQuick)(?=[ \t]*(?:as[ \t]|;|//|/\*|$)))")
+);
+} // namespace
+
bool QmlScanner::readAndHashFile(const QString& path, QByteArray& data) {
auto file = QFile(path);
if (!file.open(QFile::ReadOnly)) return false;
@@ -65,13 +72,19 @@ void QmlScanner::scanDir(const QDir& dir) {
) << "Found qmldir file, qmldir synthesization will be disabled for directory"
<< path;
seenQmldir = true;
- } else if (name.at(0).isUpper() && name.endsWith(".qml")) {
- auto& entry = entries.emplaceBack();
+ } else if (name.endsWith(".qml") && (this->omarchyLoadPatch || name.at(0).isUpper())) {
+ if (name.at(0).isUpper()) {
+ auto& entry = entries.emplaceBack();

- if (this->scanQmlFile(dir.filePath(name), entry.singleton, entry.internal)) {
- entry.name = name;
+ if (this->scanQmlFile(dir.filePath(name), entry.singleton, entry.internal)) {
+ entry.name = name;
+ } else {
+ entries.pop_back();
+ }
} else {
- entries.pop_back();
+ bool singleton = false;
+ bool internal = false;
+ this->scanQmlFile(dir.filePath(name), singleton, internal);
}
} else if (name.at(0).isUpper() && name.endsWith(".qml.json")) {
if (this->scanQmlJson(dir.filePath(name))) {
@@ -121,9 +134,10 @@ void QmlScanner::scanDir(const QDir& dir) {
qCDebug(logQmlScanner) << "Synthesized qmldir for" << path << qPrintable("\n" + qmldir);
this->fileIntercepts.insert(QDir(path).filePath("qmldir"), qmldir);
}
+
}

-bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& internal) {
+bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& internal, bool isRoot) {
if (this->scannedFiles.contains(path)) return false;
this->scannedFiles.push_back(path);

@@ -159,6 +173,9 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna
if (!sourceMasked && inHeader) {
if (!singleton && line == "pragma Singleton") {
singleton = true;
+ } else if (isRoot && line == "//@ pragma OmarchyLoadPatch") {
+ // Qt 6.12 added a QtQuick Color singleton which shadows Omarchy's Color singleton.
+ this->omarchyLoadPatch = true;
} else if (line.startsWith("import")) {
// we don't care about "import qs" as we always load the root folder
if (auto importCursor = line.indexOf(" qs."); importCursor != -1) {
@@ -226,6 +243,15 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna
}
}

+ if (!sourceMasked && this->omarchyLoadPatch) {
+ auto patchedLine =
+ QString(rawLine).replace(unversionedQtQuickImport, QStringLiteral("\\1 6.11"));
+ if (patchedLine != rawLine) {
+ rawLine = patchedLine;
+ isOverridden = true;
+ }
+ }
+
if (!hideMask && sourceMasked) overrideText.append("// MASKED: " % rawLine % '\n');
else overrideText.append(rawLine % '\n');

@@ -285,7 +311,7 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna
void QmlScanner::scanQmlRoot(const QString& path) {
bool singleton = false;
bool internal = false;
- this->scanQmlFile(path, singleton, internal);
+ this->scanQmlFile(path, singleton, internal, true);
}

bool QmlScanner::scanQmlJson(const QString& path) {
diff --git c/src/core/scan.hpp i/src/core/scan.hpp
index 7d807e1..932c0b0 100644
--- c/src/core/scan.hpp
+++ i/src/core/scan.hpp
@@ -25,6 +25,7 @@ public:
QVector<QString> scannedFiles;
QHash<QString, QByteArray> fileHashes;
QHash<QString, QString> fileIntercepts;
+ bool omarchyLoadPatch = false;

struct ScanError {
QString file;
@@ -40,7 +41,7 @@ public:
private:
QDir rootPath;

- bool scanQmlFile(const QString& path, bool& singleton, bool& internal);
+ bool scanQmlFile(const QString& path, bool& singleton, bool& internal, bool isRoot = false);
bool scanQmlJson(const QString& path);
[[nodiscard]] static QPair<QString, QString> jsonToQml(const QJsonValue& value, int indent = 0);

diff --git c/src/launch/launch.cpp i/src/launch/launch.cpp
index 1edd60c..f2542ae 100644
--- c/src/launch/launch.cpp
+++ i/src/launch/launch.cpp
@@ -124,6 +124,8 @@ int launch(const LaunchArgs& args, char** argv) {
pragmas.stateDir = pragma.sliced(9).trimmed();
} else if (pragma.startsWith("CacheDir ")) {
pragmas.cacheDir = pragma.sliced(9).trimmed();
+ } else if (pragma == "OmarchyLoadPatch") {
+ // Applied later by the QML scanner.
} else {
qWarning() << "Unrecognized pragma" << pragma;
}
7 changes: 7 additions & 0 deletions packages/quickshell/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"repository": "quickshell-mirror/quickshell",
"version": "0.3.2.r7.g2b4501a",
"commit": "2b4501a282689792b62e94f3fb30d8f512324fe6",
"url": "https://github.com/quickshell-mirror/quickshell/archive/2b4501a282689792b62e94f3fb30d8f512324fe6.tar.gz",
"sha256": "e09495c73f8bfbb8637a28e6d73bf84063631b49bb3cb6d3c9702c80dfa78f31"
}
Loading