* 0002-configuration-changes-for-default-wayfire-session.patch
    - Sets openSUSE background for wayfire session
  * 0003-configuration-changes-for-default-niri-session.patch
    - Disables "natural scrolling" by default
  * 0004-configuration-adds-miriway-session.patch
    - Enables miriway as a compositor option, and adds
      configurations
- Minor specfile cleanup

OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-wayland-session?expand=0&rev=14
This commit is contained in:
Shawn Dunn 2025-01-17 02:09:54 +00:00 committed by Git OBS Bridge
commit 16aa50f074
11 changed files with 603 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,42 @@
From 24e1764403171309cde962f5849ad11fbd16b2f4 Mon Sep 17 00:00:00 2001
From: "Shawn W. Dunn" <sfalken@cloverleaf-linux.org>
Date: Wed, 8 Jan 2025 09:24:02 -0800
Subject: [PATCH 1/4] configuration changes for default labwc session
Combines two prior patches into one, as they're both for the labwc
session. Sets openSUSE background for labwc session, and adjusts
the pointerspeed to make the default mouse pointer less twitchy
---
configurations/labwc/autostart | 2 +-
configurations/labwc/rc.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configurations/labwc/autostart b/configurations/labwc/autostart
index fa49741..a756d24 100644
--- a/configurations/labwc/autostart
+++ b/configurations/labwc/autostart
@@ -3,7 +3,7 @@
# Preferred place for starting wayland-only applications
# Set background color or image (below the desktop):
-swaybg -i /usr/share/lxqt/wallpapers/origami-dark-labwc.png >/dev/null 2>&1 &
+swaybg -i /usr/share/wallpapers/openSUSEdefault/contents/images/default.png >/dev/null 2>&1 &
# Faster startup for GTK apps:
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY > /dev/null 2>&1 &
diff --git a/configurations/labwc/rc.xml b/configurations/labwc/rc.xml
index 41d628c..07acc3c 100644
--- a/configurations/labwc/rc.xml
+++ b/configurations/labwc/rc.xml
@@ -607,7 +607,7 @@
<device category="default">
<naturalScroll></naturalScroll>
<leftHanded></leftHanded>
- <pointerSpeed>1</pointerSpeed>
+ <pointerSpeed>0.0</pointerSpeed>
<accelProfile></accelProfile>
<tap>yes</tap>
<tapButtonMap></tapButtonMap>
--
2.47.1

View File

@ -0,0 +1,26 @@
From 38f2d4080029bf38c452c176bc675a2b1bd2c818 Mon Sep 17 00:00:00 2001
From: "Shawn W. Dunn" <sfalken@cloverleaf-linux.org>
Date: Wed, 8 Jan 2025 10:47:45 -0800
Subject: [PATCH 2/4] configuration changes for default wayfire session
Set openSUSE background in default wayfire session
---
configurations/lxqt-wayfire.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configurations/lxqt-wayfire.ini b/configurations/lxqt-wayfire.ini
index edcbab3..3e531ef 100644
--- a/configurations/lxqt-wayfire.ini
+++ b/configurations/lxqt-wayfire.ini
@@ -126,7 +126,7 @@ toggle = <super> <ctrl> KEY_F
# Automatically start background and panel.
# Set to false if you want to override the default clients.
autostart_wf_shell = false
-splash = swaybg -i /usr/share/lxqt/wallpapers/origami-dark.png
+splash = swaybg -i /usr/share/wallpapers/openSUSEdefault/contents/images/default.png
session = lxqt-session && killall wayfire
# Output configuration
--
2.47.1

View File

@ -0,0 +1,26 @@
From 68ce5d43980b817fcf2759144d14bcead3689378 Mon Sep 17 00:00:00 2001
From: "Shawn W. Dunn" <sfalken@cloverleaf-linux.org>
Date: Wed, 8 Jan 2025 10:51:06 -0800
Subject: [PATCH 3/4] configuration changes for default niri session
Disables "natural scrolling" for scrollwheel in default session
---
configurations/lxqt-niri.kdl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configurations/lxqt-niri.kdl b/configurations/lxqt-niri.kdl
index 845a4d0..883eeac 100644
--- a/configurations/lxqt-niri.kdl
+++ b/configurations/lxqt-niri.kdl
@@ -28,7 +28,7 @@ input {
tap
dwt
dwtp
- natural-scroll
+ // natural-scroll
accel-speed 0.6
// accel-profile "flat"
// scroll-method "two-finger"
--
2.47.1

View File

@ -0,0 +1,129 @@
From 0f6ac090dfa3767fec272fed0f1391db3b859ab8 Mon Sep 17 00:00:00 2001
From: "Shawn W. Dunn" <sfalken@cloverleaf-linux.org>
Date: Thu, 16 Jan 2025 16:12:51 -0800
Subject: [PATCH 4/4] configuration adds miriway session
Adds miriway session to package, currently being considered for
inclusion upstream @ https://github.com/lxqt/lxqt-wayland-session/pull/40
---
configurations/CMakeLists.txt | 2 +
configurations/miriway/lxqt-miriway-wrapper | 42 +++++++++++++++++++++
configurations/miriway/miriway-shell.config | 22 +++++++++++
startlxqtwayland.in | 10 +++++
4 files changed, 76 insertions(+)
create mode 100644 configurations/miriway/lxqt-miriway-wrapper
create mode 100644 configurations/miriway/miriway-shell.config
diff --git a/configurations/CMakeLists.txt b/configurations/CMakeLists.txt
index 02ab38d..153a7f1 100644
--- a/configurations/CMakeLists.txt
+++ b/configurations/CMakeLists.txt
@@ -17,6 +17,8 @@ install(FILES
install(DIRECTORY
labwc
firstrun
+ miriway
+ USE_SOURCE_PERMISSIONS
DESTINATION "${CMAKE_INSTALL_DATADIR}/lxqt/wayland"
COMPONENT Runtime
)
diff --git a/configurations/miriway/lxqt-miriway-wrapper b/configurations/miriway/lxqt-miriway-wrapper
new file mode 100644
index 0000000..85079c0
--- /dev/null
+++ b/configurations/miriway/lxqt-miriway-wrapper
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+unset WAYLAND_DISPLAY
+unset DISPLAY
+
+port=0
+while [ -e "${XDG_RUNTIME_DIR}/wayland-${port}" ]; do
+ let port+=1
+done
+wayland_display=wayland-${port}
+
+export WAYLAND_DISPLAY=${wayland_display}
+
+if command -v Xwayland > /dev/null
+then
+ export MIR_SERVER_ENABLE_X11=1
+ MIR_SERVER_XWAYLAND_PATH=$(which Xwayland)
+ export MIR_SERVER_XWAYLAND_PATH
+fi
+
+export MIRIWAY_CONFIG_DIR="lxqt"
+
+miriway-shell --display-config=static="${XDG_CONFIG_HOME}/miriway-shell.display-config" --add-wayland-extensions=all --lockscreen-app="lxqt-leave --lockscreen" &
+miriway_pid=$!
+
+# Wait until the server starts
+until [ -O "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}" ]
+do
+ if ! kill -0 ${miriway_pid} &> /dev/null
+ then
+ echo "ERROR: miriway-shell [pid=${miriway_pid}] is not running"
+ exit 1
+ fi
+ inotifywait -qq --timeout 5 --event create "$(dirname "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}")"
+done
+
+lxqt-session "$@"
+lxqt_session_exit_code=$?
+
+kill $miriway_pid
+
+exit $lxqt_session_exit_code
diff --git a/configurations/miriway/miriway-shell.config b/configurations/miriway/miriway-shell.config
new file mode 100644
index 0000000..9f4cf9e
--- /dev/null
+++ b/configurations/miriway/miriway-shell.config
@@ -0,0 +1,22 @@
+x11-window-title=LXQt (Miriway)
+idle-timeout=600
+
+shell-component=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
+
+shell-alt=Space:lxqt-runner
+shell-alt=F2:lxqt-runner
+shell-meta=l:lxqt-leave --lockscreen
+
+meta=p:pcmanfm-qt
+meta=Return:qterminal
+meta=f:featherpad
+
+meta=Left:@dock-left
+meta=Right:@dock-right
+meta=Space:@toggle-maximized
+meta=Home:@workspace-begin
+meta=End:@workspace-end
+meta=Page_Up:@workspace-up
+meta=Page_Down:@workspace-down
+ctrl-alt=BackSpace:@exit
+
diff --git a/startlxqtwayland.in b/startlxqtwayland.in
index 64a2986..dd91eb4 100644
--- a/startlxqtwayland.in
+++ b/startlxqtwayland.in
@@ -140,6 +140,16 @@ elif [ "$COMPOSITOR" = "kwin_wayland" ]; then
# WARNING: Option '--no-kactivities' can result in crashes with animations and corner actions.
exec ${COMPOSITOR}_wrapper --exit-with-session lxqt-session --xwayland
+elif [ "$COMPOSITOR" = "miriway" ]; then
+ export XDG_CURRENT_DESKTOP="LXQt:$COMPOSITOR:mir"
+ if [ ! -f "$XDG_CONFIG_HOME/lxqt/miriway-shell.config" ]; then
+ cp "$share_dir"/lxqt/wayland/miriway/miriway-shell.config "$XDG_CONFIG_HOME/lxqt/miriway-shell.config"
+ if echo "$valid_layouts" | grep -q "$trylayout"; then
+ echo "keymap=$trylayout" >> "$XDG_CONFIG_HOME/lxqt/miriway-shell.config"
+ fi
+ fi
+ exec "${share_dir}/lxqt/wayland/${COMPOSITOR}/lxqt-${COMPOSITOR}-wrapper"
+
elif [ "$COMPOSITOR" = "wayfire" ]; then
if [ ! -f "$XDG_CONFIG_HOME/lxqt/wayland/lxqt-wayfire.ini" ]; then
cp "$share_dir"/lxqt/wayland/lxqt-wayfire.ini "$XDG_CONFIG_HOME"/lxqt/wayland/
--
2.48.0

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:34e9441a7d4bdf243e4a380a10d00e746e4ef43a1a6ccda1c8e6c6bc3c513fbc
size 354728

View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJJBAABCAAzFiEEGd/fOleb1QnbtXLYvnkwB60i334FAmdDcwgVHHRzdWphbjIw
MDBAZ21haWwuY29tAAoJEL55MAetIt9+AfUQALc5ZrOf2UP0vmhX4WNqmwfavXJ2
hpmCx77iJ1bhrg2nlYZ/udAbsN7qb2apIopYVAYF0ohgN7wuv9JUWYEw7bZQ8QyU
PBGgMsLIhNMbl4T2Bl30xCb/667+diMm8S8ePvVIEoLIAk5ynmuyh5PDUVVUcOq6
2EKQ2fJ7yJJfnCslCo+QEmkPKDnJlBrznGojYJXR36o9uiWP1iu6+ycLe216mZr7
3X8+1vC75Awp1xo+sfzxf+GLtrefq5NnHhqT6GOM3rrgpWU9V+w9pCrRTGgjKYD9
hpgeJuoZIAk1OPe5meq0mnPKgFWXhPS70RW7EDEFnTgrlu0YCVcFJ01DUbfw/E5k
xcRneUTf/DuN+RgQdY60GvUT628nAPhW61tmQoLDlS+lUGDwuo4BotQCmey2VkVs
IE2LPyt2Bl3lsUuDe7fUhrhyxkqcdvrqNI1Vy+ZvO8NHEGRi05Hl9YCYHbn4QP/o
gO6lmGOhwa3zQZukQrOUCmV/Dxnp4ynO+PsmNjvRBJ2tkx3sWmAKt7llUKkg+E8X
d/NDHIVcts1beLb6apJVchrJvRliM6kNOsL4wLOYsdakD5nalFr5Nwgm+CVp1XVW
ukzTmWtottq8vFvQ0IpjqfXaQ7SUb5xuzP0d7b0AEtopbN6DtBL747NVnxY0Nw8C
z7mODHYHnW1yZXGv
=5Imx
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,69 @@
-------------------------------------------------------------------
Wed Jan 15 16:38:31 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
- Add:
* 0002-configuration-changes-for-default-wayfire-session.patch
- Sets openSUSE background for wayfire session
* 0003-configuration-changes-for-default-niri-session.patch
- Disables "natural scrolling" by default
* 0004-configuration-adds-miriway-session.patch
- Enables miriway as a compositor option, and adds
configurations
- Minor specfile cleanup
-------------------------------------------------------------------
Wed Jan 8 17:29:38 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
- Drop:
* 0001-Adjust-labwc-pointerspeed.patch
* 001-labwc-autostart-swaybg.patch
- Add:
* 0001-configuration-changes-for-default-labwc-session.patch
- Combines both dropped patches to a git_am style patch
* Recommends for labwc session (Quality of Life Improvements)
- labwc-tweaks (some GUI labwc configuration options)
- wdisplays (GUI settings of displays under wayland)
- sddm-conf (GUI configuration for sddm)
-------------------------------------------------------------------
Mon Dec 30 17:08:33 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
- Added Requires: hyprland-qtutils to hyprland session, provides
further integration/support with the Qt toolkit to hyprland
-------------------------------------------------------------------
Mon Dec 30 17:05:50 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
- Added:
* 0001-Adjust-labwc-pointerspeed.patch Adjusts default pointer
speed in labwc session
-------------------------------------------------------------------
Mon Nov 25 18:24:00 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
- Update to version 0.1.1:
* Fixed the issue which happened when full paths were used
instead of the compositor's executable name
* Updated lxqt-hyprland.conf for Hyprland v.0.45
* Activated xdg-activation by default in Wayfire's config
-------------------------------------------------------------------
Wed Nov 13 15:34:49 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
- Add Conflicts: labwc-theme-vent
-------------------------------------------------------------------
Wed Nov 13 00:26:21 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
- Added Supplements: for subpackages
-------------------------------------------------------------------
Tue Nov 12 18:35:22 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
- Specfile cleanup, and splitting out the various compositors into
reasonable subpackages
-------------------------------------------------------------------
Wed Nov 6 22:07:18 UTC 2024 - Андрей Алыпов <and.november@opensuse.org>
- initial package (version 0.1.0) for openSUSE

View File

@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF6cxrwBEADfl3ydxNfLBbWGPesXty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s1QW6BV75JQKqoi+cVt+/L
+o1S8CMNekjqdC2mWRosM3doo51zT/FWNzQA1QcoZP2hORJDfw66y+4wPq6o8y1W
jR35ABEBAAGJAjYEGAEIACAWIQQZ3986V5vVCdu1cti+eTAHrSLffgUCXpzGvAIb
DAAKCRC+eTAHrSLffgbJD/4qW5YOo/BayBhaUh2L7VP7JNlECb/2xNNOFKI1NjNr
nOmgSJLzf74Uhmt5W+iVjmJBHrDceprIPkizmPrn90kIsPIMtHIDNxzUgKZHbnza
j1vZyAeC+JV79X1hOVpprj1TJwy65lpxXNyYnGqeIOgyFokn9fOHXv8aMQwpNuUr
bdUJ1C75jYrvwy/NR1DczIFFYgsbkDGDtjVBjyMc5JAgvUBz37/iVPJfWP6dKVnf
abRnUVzHgvgK7bnab00SA1TiWvjHURGjo+5rnRtv8X/AgStc2Phjq68TMIgMn0F2
kjUVvfQotNqzo9madNshvUDmsGtAzKh4e0dS1ear7u3nRp4Z7fqSrTEtXKNbEPwZ
wdWrWmmQLacNQBSe/FtcMzGF6xIVr4lnrL0bFjqBdQpdTC7vns3QSKk8/GFiEfpv
kzXrDbGV7jX2OWDjNHKcmXX2+E1CsNaJgS7zOgZw5jvbvlTLJUwyYNlM1VLI2OFW
Oa86l8pqli+B7rpTbsAE9Ut8qUaWjm87oUNSJbaKgqNnMaE+b/8VJaEeWHgQJwsD
bJSJ/O/vzlRtDjOJ1JDlMRLs7TnOFeUh5pgwyaJoidYbJEiGlMGJbI6BjwhDTBFO
NLJtd3SsRjc7ICtGdCvej59IvCDTjxtkhx5okF03APi1aXpHQrE18/arFD7BpoGO
sw==
=gSIv
-----END PGP PUBLIC KEY BLOCK-----

215
lxqt-wayland-session.spec Normal file
View File

@ -0,0 +1,215 @@
#
# spec file for package lxqt-wayland-session
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: lxqt-wayland-session
Version: 0.1.1
Release: 0
Summary: Files needed for the LXQt Wayland Session
License: BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-3.0-or-later AND MIT AND CC-BY-SA-4.0
URL: https://github.com/lxqt/lxqt-wayland-session
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
## PATCH-CONFIGURATION-openSUSE 0001-configuration-changes-for-default-labwc-session.patch
Patch0: 0001-configuration-changes-for-default-labwc-session.patch
## PATCH-CONFIGURATION-openSUSE 0002-configuration-changes-for-default-wayfire-session.patch
Patch1: 0002-configuration-changes-for-default-wayfire-session.patch
## PATCH-CONFIGURATION-openSUSE 0003-configuration-changes-for-default-niri-session.patch
Patch2: 0003-configuration-changes-for-default-niri-session.patch
## PATCH-FEATURE-Upstream 0004-configuration-adds-miriway-session.patch
Patch3: 0004-configuration-adds-miriway-session.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: git-core
BuildRequires: pkgconfig
BuildRequires: xdg-user-dirs
BuildRequires: cmake(KF6WindowSystem)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(lxqt2-build-tools)
BuildRequires: pkgconfig(lxqt) >= 2.1.0
Requires: layer-shell-qt6 >= 6.2.0
Requires: lxqt-session >= 2.1.0
Requires: xdg-user-dirs
BuildArch: noarch
%description
Files needed for the LXQt Wayland Session: Wayland session start script,
its desktop entry for display managers and default configurations for
actually supported compositors.
%package -n lxqt-hyprland-session
Summary: Session files for LXQt-Hyprland
License: BSD-3-Clause
Requires: %{name} = %{version}
Requires: hyprland
Requires: hyprland-qtutils
Supplements: (%{name} and hyprland)
%description -n lxqt-hyprland-session
This package contains the files necessary to use Hyprland as the Wayland
compositor with LXQt
%package -n lxqt-labwc-session
Summary: Session files and theme for labwc
License: CC-BY-SA-4.0 AND GPL-2.0-or-later
Requires: %{name} = %{version}
Requires: labwc >= 0.7.2
Requires: swaybg
Requires: swayidle
Requires: swaylock
Recommends: labwc-tweaks
Recommends: sddm-conf
Recommends: wdisplays
Supplements: (%{name} and labwc)
Conflicts: labwc-theme-vent <= %{version}
%description -n lxqt-labwc-session
This package contains the openbox themes and other files for labwc.
%package -n lxqt-miriway-session
Summary: Session files for LXQt-Miriway
License: GPL-3.0-or-later
Requires: %{name} = %{version}
Requires: miriway
Supplements: (%{name} and miriway)
%description -n lxqt-miriway-session
This package contains the files necessary to use Miriway as the Wayland
compositor with LXQt
%package -n lxqt-niri-session
Summary: Session files for LXQT-niri
License: GPL-3.0-or-later
Requires: %{name} = %{version}
Requires: niri
Supplements: (%{name} and niri)
%description -n lxqt-niri-session
This package contains the files necessary to use niri as the Wayland compositor
for LXQt
%package -n lxqt-river-session
Summary: Session files for LXQt-river
License: GPL-3.0-or-later
Requires: %{name} = %{version}
Requires: river
Supplements: (%{name} and river)
%description -n lxqt-river-session
This package contains the files necessary to use river as the Wayland
compositor with LXQt
%package -n lxqt-sway-session
Summary: Session files for LXQt-Sway
License: MIT
Requires: %{name} = %{version}
Requires: sway
Supplements: (%{name} and sway)
%description -n lxqt-sway-session
This package contains the files necessary to use Sway as the Wayland compositor
with LXQt
%package -n lxqt-wayfire-session
Summary: Session files for LXQt-wayfire
License: MIT
Requires: %{name} = %{version}
Requires: wayfire
Recommends: sddm-conf
Recommends: wcm
Supplements: (%{name} and wayfire)
%description -n lxqt-wayfire-session
This package contains the files necessary to use wayfire as the Wayland
compositor with LXQt
%prep
%autosetup -p1 -S git_am
%build
%cmake
%cmake_build
%install
%cmake_install
%fdupes -s %{buildroot}%{_datadir}/themes/
%check
%ctest
%files
%doc README.md
%license COPYING.LESSER LICENSE
%dir %{_datadir}/lxqt
%dir %{_datadir}/lxqt/wayland
%dir %{_datadir}/lxqt/wayland/firstrun
%dir %{_datadir}/wayland-sessions
%{_bindir}/startlxqtwayland
%{_datadir}/lxqt/wayland/firstrun/autostart
%{_datadir}/wayland-sessions/lxqt-wayland.desktop
%files -n lxqt-hyprland-session
%license LICENSE.BSD
%{_datadir}/lxqt/wayland/lxqt-hyprland.conf
%files -n lxqt-labwc-session
%license LICENSE.GPLv2
%dir %{_datadir}/lxqt/wallpapers
%dir %{_datadir}/lxqt/wayland/labwc
%dir %{_datadir}/lxqt/graphics
%{_datadir}/themes/Vent/
%{_datadir}/themes/Vent-dark/
%{_datadir}/lxqt/wallpapers/origami-dark-labwc.png
%{_datadir}/lxqt/wayland/labwc/README
%{_datadir}/lxqt/wayland/labwc/autostart
%{_datadir}/lxqt/wayland/labwc/environment
%{_datadir}/lxqt/wayland/labwc/menu.xml
%{_datadir}/lxqt/wayland/labwc/rc.xml
%{_datadir}/lxqt/wayland/labwc/themerc
%{_datadir}/lxqt/wayland/labwc/themerc-override
%{_datadir}/lxqt/graphics/lxqt-labwc.png
%files -n lxqt-miriway-session
%license COPYING
%dir %{_datadir}/lxqt/wayland/miriway
%attr(0755,root,root)%{_datadir}/lxqt/wayland/miriway/lxqt-miriway-wrapper
%{_datadir}/lxqt/wayland/miriway/miriway-shell.config
%files -n lxqt-niri-session
%license COPYING
%{_datadir}/lxqt/wayland/lxqt-niri.kdl
%files -n lxqt-river-session
%license COPYING
%attr(0755,root,root)%{_datadir}/lxqt/wayland/lxqt-river-init
%files -n lxqt-sway-session
%license LICENSE.MIT
%{_datadir}/lxqt/wayland/lxqt-sway.config
%files -n lxqt-wayfire-session
%license LICENSE.MIT
%{_datadir}/lxqt/wayland/lxqt-wayfire.ini
%changelog