| |
@@ -1,6 +1,6 @@
|
| |
Name: sway
|
| |
Version: 1.5.1
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 3%{?dist}
|
| |
Summary: i3-compatible window manager for Wayland
|
| |
License: MIT
|
| |
URL: https://github.com/swaywm/sway
|
| |
@@ -34,6 +34,8 @@
|
| |
Recommends: dmenu
|
| |
# In addition, xargs is recommended for use in such a launcher arrangement
|
| |
Recommends: findutils
|
| |
+ # Install configs and scripts for better integration with systemd user session
|
| |
+ Recommends: sway-systemd
|
| |
|
| |
Requires: swaybg
|
| |
# By default the Fedora background is used
|
| |
@@ -41,6 +43,9 @@
|
| |
|
| |
# Lack of graphical drivers may hurt the common use case
|
| |
Recommends: mesa-dri-drivers
|
| |
+ # Minimal installation doesn't include Qt Wayland backend
|
| |
+ Recommends: (qt5-qtwayland if qt5-qtbase-gui)
|
| |
+ Recommends: (qt6-qtwayland if qt6-qtbase-gui)
|
| |
|
| |
# dmenu (as well as rxvt any many others) requires XWayland on Sway
|
| |
Requires: xorg-x11-server-Xwayland
|
| |
@@ -53,6 +58,19 @@
|
| |
Sway is a tiling window manager supporting Wayland compositor protocol and
|
| |
i3-compatible configuration.
|
| |
|
| |
+ %package -n grimshot
|
| |
+ Summary: Helper for screenshots within sway
|
| |
+ Requires: grim
|
| |
+ Requires: jq
|
| |
+ Requires: slurp
|
| |
+ Requires: /usr/bin/wl-copy
|
| |
+ Recommends: /usr/bin/notify-send
|
| |
+
|
| |
+ %description -n grimshot
|
| |
+ Grimshot is an easy to use screenshot tool for sway. It relies on grim,
|
| |
+ slurp and jq to do the heavy lifting, and mostly provides an easy to use
|
| |
+ interface.
|
| |
+
|
| |
%prep
|
| |
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
| |
%autosetup -p1
|
| |
@@ -65,13 +83,20 @@
|
| |
%meson_install
|
| |
# Set Fedora background as default background
|
| |
sed -i "s|^output \* bg .*|output * bg /usr/share/backgrounds/default.png fill|" %{buildroot}%{_sysconfdir}/sway/config
|
| |
+ # Create directory for extra config snippets
|
| |
+ install -d -m755 -pv %{buildroot}%{_sysconfdir}/sway/config.d
|
| |
+
|
| |
+ # install contrib/grimshot tool
|
| |
+ scdoc <contrib/grimshot.1.scd >%{buildroot}%{_mandir}/man1/grimshot.1
|
| |
+ install -D -m755 -pv contrib/grimshot %{buildroot}%{_bindir}/grimshot
|
| |
|
| |
%files
|
| |
%license LICENSE
|
| |
%doc README.md
|
| |
%dir %{_sysconfdir}/sway
|
| |
+ %dir %{_sysconfdir}/sway/config.d
|
| |
%config(noreplace) %{_sysconfdir}/sway/config
|
| |
- %{_mandir}/man1/*
|
| |
+ %{_mandir}/man1/sway*
|
| |
%{_mandir}/man5/*
|
| |
%{_mandir}/man7/*
|
| |
%{_bindir}/sway
|
| |
@@ -90,7 +115,16 @@
|
| |
%{_datadir}/fish/vendor_completions.d/sway*
|
| |
%{_datadir}/backgrounds/sway
|
| |
|
| |
+ %files -n grimshot
|
| |
+ %{_bindir}/grimshot
|
| |
+ %{_mandir}/man1/grimshot.1*
|
| |
+
|
| |
%changelog
|
| |
+ * Sat Feb 20 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 1.5.1-3
|
| |
+ - Recommend wayland backend for Qt
|
| |
+ - Add subpackage for contrib/grimshot screenshot tool
|
| |
+ - Add 'Recommend: sway-systemd'
|
| |
+
|
| |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
| |
|
| |
Preparation work for 1.6 + some extras
mako
,xdg-desktop-portal-wlr
, etc) and thus we should propagateWAYLAND_DISPLAY
value received from the compositor to a systemd user instancexdg-desktop-portal
needsXDG_CURRENT_DESKTOP=sway
to be able to pick the right portal implementation fororg.freedesktop.portal.Screenshot
andorg.freedesktop.portal.ScreenCast
qtwayland
platform plugins and all the Qt apps are running under Xwayland. Let's fix that as well (just because I had this change stashed for a few months).grimshot
is an useful script for taking screenshots fromcontrib/
directory.Sources and additional reading: