blob: 62b1fe8a3fea247676fd5c560ba9fbdf0d480c96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Maintainer: Atmosphera App <atmosphera-app@proton.me>
pkgname=atmosphera
pkgver=0.9.1
pkgrel=1
_gitname="$pkgname-$pkgver"
pkgdesc="Atmosphera - a customizable desktop shell for Niri and Hyprland, built with Quickshell"
arch=('any')
url="https://github.com/alexindigo/atmosphera"
license=('GPL-3.0-or-later')
makedepends=()
depends=(
'quickshell'
'qt6-dbusqml>=1.1.0'
'qt6-pipewirespectrum'
'qt6-xdgiconqml-git'
'imagemagick'
'brightnessctl'
'ffmpeg'
'qt6-multimedia'
'python'
'python-dbus'
'python-gobject'
'wlr-randr'
)
optdepends=(
'cliphist: For clipboard history support'
'wlsunset: For supporting NightLight'
'power-profiles-daemon: For power profile management'
'ddcutil: For external display brightness control'
'qt6-niriqml: niri IPC integration (workspaces, windows, session config)'
'qt6-mangowcqml: mangowc IPC integration (workspaces, windows, session config)'
'keyd: hardware-level keyboard remapping (bindings environments)'
'xremap-niri-bin: session-level app-scoped keymaps (macos bindings)'
'qt6-5compat: required by some registry plugins (e.g. cookie-clock)'
'qt6-websockets: required by some registry plugins (e.g. hassio)'
'xdg-desktop-portal-gnome: screencast / screen-sharing support (niri cannot use -wlr)'
)
provides=('atmosphera' 'xdg-desktop-portal-impl')
conflicts=('atmosphera-git')
install=atmosphera.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('e69dbb0aa3f8ba203859f3d8e0d57c067a3abf34e30cc4594a0c2006777c139c')
package() {
cd "$srcdir/$_gitname"
install -dm755 "$pkgdir/etc/xdg/quickshell/atmosphera"
cp -r ./* "$pkgdir/etc/xdg/quickshell/atmosphera/"
# Bake the real package version into the installed tree (About panel reads it)
echo "$pkgver" > "$pkgdir/etc/xdg/quickshell/atmosphera/VERSION"
# Exclude dev tooling and temp files from the installed tree
rm -rf "$pkgdir/etc/xdg/quickshell/atmosphera/dev" "$pkgdir/etc/xdg/quickshell/atmosphera/Scripts/dev"
# Bundled per-process lock screen (the shell spawns it as
# `qs -c atmosphera-lockscreen`): sibling config whose symlinks into the
# main tree let the shared lock UIs render with fresh per-process
# singletons.
install -dm755 "$pkgdir/etc/xdg/quickshell/atmosphera-lockscreen"
install -Dm644 Quickshell/atmosphera-lockscreen/shell.qml "$pkgdir/etc/xdg/quickshell/atmosphera-lockscreen/shell.qml"
for d in Assets Bindings Commons Configs Helpers Modules Services Widgets builtin; do
ln -sfn "../atmosphera/$d" "$pkgdir/etc/xdg/quickshell/atmosphera-lockscreen/$d"
done
rm -rf "$pkgdir/etc/xdg/quickshell/atmosphera/tmp"
# Install dispatcher to PATH (handlers resolved via SELF_DIR auto-detect)
install -Dm755 Scripts/bash/atmosphera "$pkgdir/usr/local/bin/atmosphera"
# Multi-call symlinks: invoke as atmoshera-session etc. for backward compat
ln -sf atmosphera "$pkgdir/usr/local/bin/atmosphera-session"
ln -sf atmosphera "$pkgdir/usr/local/bin/atmosphera-settings"
ln -sf atmosphera "$pkgdir/usr/local/bin/atmosphera-lock"
# xdg-desktop-portal backend manifest + niri backend preference. The
# preference lives in /etc/xdg so it wins over niri's own
# /usr/share/xdg-desktop-portal/niri-portals.conf (default=gnome;gtk;)
# without owning the same path.
install -Dm644 Portals/atmosphera.portal "$pkgdir/usr/share/xdg-desktop-portal/portals/atmosphera.portal"
install -Dm644 Portals/niri-portals.conf "$pkgdir/etc/xdg/xdg-desktop-portal/niri-portals.conf"
# keyd reload service (triggered via systemd D-Bus StartUnit by the shell)
install -Dm644 Scripts/systemd/atmosphera-keyd-reload.service "$pkgdir/usr/lib/systemd/system/atmosphera-keyd-reload.service"
# xremap user unit (env-gated by the shell via the user manager)
install -Dm644 Scripts/systemd/xremap-atmosphera.service "$pkgdir/usr/lib/systemd/user/xremap-atmosphera.service"
# uinput access for the input group (xremap's virtual keyboard output)
install -Dm644 Scripts/udev/80-atmosphera-uinput.rules "$pkgdir/usr/lib/udev/rules.d/80-atmosphera-uinput.rules"
# polkit: allow active sessions/wheel to start that one service, no prompt
install -Dm644 Scripts/polkit/atmosphera-keyd.rules "$pkgdir/usr/share/polkit-1/rules.d/atmosphera-keyd.rules"
# app.atmosphera.HwController — D-Bus-faced privileged helper (turbo toggle)
install -Dm755 Scripts/python/hw-controller.py "$pkgdir/usr/lib/atmosphera/hw-controller"
install -Dm644 Scripts/systemd/app.atmosphera.HwController.service "$pkgdir/usr/lib/systemd/system/app.atmosphera.HwController.service"
install -Dm644 Scripts/dbus/app.atmosphera.HwController.service "$pkgdir/usr/share/dbus-1/system-services/app.atmosphera.HwController.service"
install -Dm644 Scripts/dbus/app.atmosphera.HwController.conf "$pkgdir/etc/dbus-1/system.d/app.atmosphera.HwController.conf"
install -Dm644 Scripts/polkit/app.atmosphera.hwcontroller.policy "$pkgdir/usr/share/polkit-1/actions/app.atmosphera.hwcontroller.policy"
# Supervised shell as a systemd user service (DMS pattern); activated per
# compositor via `atmosphera setup <wm>` (add-wants), never force-enabled.
install -Dm644 Scripts/systemd/atmosphera.service "$pkgdir/usr/lib/systemd/user/atmosphera.service"
install -Dm644 Scripts/systemd/hyprland-session.target "$pkgdir/usr/lib/systemd/user/hyprland-session.target"
}
|