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
45 changes: 45 additions & 0 deletions play.d/waywallen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/sh

PKGNAME=waywallen
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Dynamic wallpaper solution for Linux desktops"
URL="https://github.com/waywallen/waywallen"
DISPLAY_URL="https://github.com/waywallen/waywallen-display"

. $(dirname $0)/common.sh

if [ "$VERSION" = "*" ] ; then
PKGURL=$(get_github_url "$URL" "$PKGNAME-*-x86_64.AppImage")
else
PKGURL="$URL/releases/download/v$VERSION/$PKGNAME-$VERSION-x86_64.AppImage"
fi

install_pkgurl || exit

DISPLAY_VERSION="$(get_github_tag "$DISPLAY_URL" | sed -e 's|^v||')"

[ -n "$DISPLAY_VERSION" ] || DISPLAY_VERSION="<version>"

cat <<EOF

Note: run
$ serv --user waywallen on
to enable and start Waywallen wallpaper daemon.

Desktop integration for KDE Plasma and GNOME Shell is available separately:
$DISPLAY_URL

KDE Plasma 6:
$ eget -O /tmp/waywallen-kde-$DISPLAY_VERSION-x86_64-embed.zip $DISPLAY_URL/releases/download/v$DISPLAY_VERSION/waywallen-kde-$DISPLAY_VERSION-x86_64-embed.zip
$ kpackagetool6 --type Plasma/Wallpaper -u /tmp/waywallen-kde-$DISPLAY_VERSION-x86_64-embed.zip || kpackagetool6 --type Plasma/Wallpaper -i /tmp/waywallen-kde-$DISPLAY_VERSION-x86_64-embed.zip
This command upgrades the KDE Plasma extension if it is already installed, or installs it otherwise.
$ systemctl --user restart plasma-plasmashell.service

GNOME Shell 48+:
$ eget -O /tmp/waywallen-gnome-$DISPLAY_VERSION-x86_64.zip $DISPLAY_URL/releases/download/v$DISPLAY_VERSION/waywallen-gnome-$DISPLAY_VERSION-x86_64.zip
$ gnome-extensions install --force /tmp/waywallen-gnome-$DISPLAY_VERSION-x86_64.zip
$ gnome-extensions enable org.waywallen.gnome@waywallen.io

Log out and back in to load the GNOME Shell extension.
EOF
29 changes: 29 additions & 0 deletions repack.d/waywallen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh -x

# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"

PRODUCT=waywallen

. $(dirname $0)/common.sh

install_file $PRODUCTDIR/org.waywallen.waywallen.svg /usr/share/icons/hicolor/scalable/apps/org.waywallen.waywallen.svg
fix_desktop_file "Categories=Graphics;Qt;" "Categories=Settings;DesktopSettings;Qt;"

cat <<EOF | create_file /usr/lib/systemd/user/waywallen.service
[Unit]
Description=Waywallen wallpaper daemon
Documentation=https://github.com/waywallen/waywallen
After=graphical-session.target
PartOf=graphical-session.target

[Service]
Type=simple
ExecStart=/usr/bin/waywallen --no-ui --no-tray
Restart=on-failure
RestartSec=2

[Install]
WantedBy=graphical-session.target
EOF