From f39afdc06fbaed078aa4a3a6ae5be3ecfa81baaa143b23649f1c0d10b10d9bcc Mon Sep 17 00:00:00 2001 From: Denys Kondratenko Date: Wed, 30 Oct 2024 16:32:49 +0000 Subject: [PATCH] - Update to version 0.16.5: * Support new openSUSE background OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/openSUSEway?expand=0&rev=54 --- .gitattributes | 23 +++ .gitignore | 1 + _service | 19 +++ openSUSEway-0.16.2.obscpio | 3 + openSUSEway-0.16.3.obscpio | 3 + openSUSEway-0.16.4.obscpio | 3 + openSUSEway-0.16.5.obscpio | 3 + openSUSEway.changes | 264 ++++++++++++++++++++++++++++++++ openSUSEway.obsinfo | 4 + openSUSEway.spec | 306 +++++++++++++++++++++++++++++++++++++ 10 files changed, 629 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 openSUSEway-0.16.2.obscpio create mode 100644 openSUSEway-0.16.3.obscpio create mode 100644 openSUSEway-0.16.4.obscpio create mode 100644 openSUSEway-0.16.5.obscpio create mode 100644 openSUSEway.changes create mode 100644 openSUSEway.obsinfo create mode 100644 openSUSEway.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..2c78037 --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + git + https://github.com/openSUSE/openSUSEway.git + 0.16.5 + @PARENT_TAG@ + (.*) + openSUSEway.spec + + + + openSUSEway.spec + + + + *.tar + gz + + diff --git a/openSUSEway-0.16.2.obscpio b/openSUSEway-0.16.2.obscpio new file mode 100644 index 0000000..c0f2d45 --- /dev/null +++ b/openSUSEway-0.16.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:465ac6ae371fbdf2f7f472882bca76ed382af141f98515c37d3cd454cd7fb919 +size 1101324 diff --git a/openSUSEway-0.16.3.obscpio b/openSUSEway-0.16.3.obscpio new file mode 100644 index 0000000..c1439b9 --- /dev/null +++ b/openSUSEway-0.16.3.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45b46d8a181de51d85c2f51c46bcd0be316e143832724aa1154cdc258995a6d6 +size 4088332 diff --git a/openSUSEway-0.16.4.obscpio b/openSUSEway-0.16.4.obscpio new file mode 100644 index 0000000..b5263e1 --- /dev/null +++ b/openSUSEway-0.16.4.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:546449a1b4bed3d22fcc5c300631f5e7a745889fce74e450e5a2ccfc37e4cdfe +size 4088332 diff --git a/openSUSEway-0.16.5.obscpio b/openSUSEway-0.16.5.obscpio new file mode 100644 index 0000000..5506cad --- /dev/null +++ b/openSUSEway-0.16.5.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b3849c8f70b40a59dab35ad11386598d6e7170c6c6d89adaafb0c37e75076ef +size 4088332 diff --git a/openSUSEway.changes b/openSUSEway.changes new file mode 100644 index 0000000..076b74a --- /dev/null +++ b/openSUSEway.changes @@ -0,0 +1,264 @@ +------------------------------------------------------------------- +Wed Oct 30 16:27:14 UTC 2024 - Filippo Bonazzi + +- Update to version 0.16.5: + * Support new openSUSE background + +------------------------------------------------------------------- +Wed Sep 18 13:22:31 UTC 2024 - Filippo Bonazzi + +- Update to version 0.16.4: + * Fix JSON parsing issue that was preventing waybar from launching + +------------------------------------------------------------------- +Fri Sep 13 10:15:14 UTC 2024 - Filippo Bonazzi + +- Update to version 0.16.3: + * Add presentations for past conferences + * Add presentation for oSC24 + * Fix waybar zypper widget + +------------------------------------------------------------------- +Tue Apr 9 16:40:31 UTC 2024 - Filippo Bonazzi + +- Update to version 0.16.2: + * Fix typo in spec file + +------------------------------------------------------------------- +Tue Apr 9 16:02:53 UTC 2024 - Filippo Bonazzi + +- Update to version 0.16.1: + * Screenshot_focused_output misses clipboard + * Change "dpms" to "power" + * Change workspace indicator to number, keep logo only on active workspace + * Increase lock timer duration + * Improve swaylock configuration + * Replace Fontawesome SUSE logo (f7d6) with openSUSE (e62b) + * Remove examples from NC config + * Use png for the default wallpaper on Tumbleweed (boo#1222545) + +------------------------------------------------------------------- +Thu Jan 25 09:33:30 UTC 2024 - Denys Kondratenko + +- Update to version 0.16.0 + * flutter takes color-scheme instead of theme by @denisok in #116 + * Fix missing glyphs on the default style by @a-kpappas in #118 + * Convert Waybar tooltip calendar to new format (>=0.9.18) by @FilippoBonazziSUSE in #120 + * Migrate Alacritty configuration to TOML by @tacerus in #128 + * Add screenshot utility configuration by @FilippoBonazziSUSE in #117 + * Add screenshot mode menu by @FilippoBonazziSUSE in #131 + * Add bluetooth waybar module by @FilippoBonazziSUSE in #127 + * Add some packages from GreyBeard by @denisok in #133 + * Add some applications to default floating by @krishjainx in #132 + +------------------------------------------------------------------- +Wed May 31 10:06:20 UTC 2023 - Denys Kondratenko + +- Update to version 0.15.2: + * Install sway systemd components to the correct directories by @FilippoBonazziSUSE in #98 + * Add SwayNotificationCenter icon to waybar by default by @FilippoBonazziSUSE in #107 + * Fix spec file errors by @FilippoBonazziSUSE in #100 + * Start sway-session systemd target when starting sway by @FilippoBonazziSUSE in #108 + * Package scratchpad-indicator helper by @FilippoBonazziSUSE in #109 + * Add style.css to the package by @denisok in #115 + * Allow sway to be run with proprietary drivers by @joantolo in #114 + +------------------------------------------------------------------- +Wed Feb 22 15:04:17 UTC 2023 - Filippo Bonazzi + +- Update to version 0.15.1: + * Fix greetd grey screen delay +- Add set_version manual service + +------------------------------------------------------------------- +Fri Feb 3 10:43:28 UTC 2023 - Filippo Bonazzi + +- Automatically format the spec file after extracting it. + Any meaningful changes can be manually fed back to the upstream Git repo. + +------------------------------------------------------------------- +Fri Feb 3 10:28:58 UTC 2023 - Filippo Bonazzi + +- Automatically extract the spec file + The spec file is now maintained in Git. The `extract` parameter of the + `obs_scm` service allows you to automatically extract the file from the + obscpio archive when running the service, updating the OBS copy of the spec + file to the upstream maintained one. + +------------------------------------------------------------------- +Wed Feb 1 10:12:18 UTC 2023 - Filippo Bonazzi + +- Add _service file, replace .tar.gz with .obscpio + +------------------------------------------------------------------- +Mon Jan 30 21:30:36 UTC 2023 - Denys Kondratenko + +- New in 0.15 release + * Use new option for window opacity by @baierjan in #56 + * Add openSUSE wob theme by @FilippoBonazziSUSE in #68 + * Improve some defaults by @FilippoBonazziSUSE in #73 + * add calendar tooltip, new weekday format by @denisok in #71 + * fix some readme typos by @AlessandroMinoccheri in #78 + * add scratchpad indicator by @denisok in #70 + * Import user configuration variables by @FilippoBonazziSUSE in #77 + * Add SwayNotificationCenter config and theme by @FilippoBonazziSUSE in #76 + * Import all user configuration variables from environment.d by @FilippoBonazziSUSE in #82 + * System mode menu by @FilippoBonazziSUSE in #90 + * Add swaync configuration in waybar and hotkey by @FilippoBonazziSUSE in #83 + * Add wob.ini configuration file for wob>=0.14 by @FilippoBonazziSUSE in #84 + * Improve README, add screenshot by @FilippoBonazziSUSE in #94 + * changes for 0.15 by @denisok in #91 + +------------------------------------------------------------------- +Tue Jan 24 12:50:15 UTC 2023 - Dominique Leuenberger + +- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to + shortcut through the -mini flavor. + +------------------------------------------------------------------- +Tue Nov 2 21:01:48 UTC 2021 - Denys Kondratenko + +- New in 0.14 release + * Add configuration for Play/Pause, Next, Prev multimedia keys. by @mcepl in #41i + ** removes add-configuration-for-play-pause-next-prev-multimedi.patch + * Allow users different MPRIS handler for multimedia keys. by @mcepl in #43 + * number of packages to update indicator to waybar by @denisok in #44 + * add style to gtkgreet to match openSUSEway theme by @denisok in #45 + * Use late evaluation of $term variable for bindsym $mod+Return by @mcepl in #46 + * Fixes greeter if GDM installed. GDM messes up tty1 by @denisok in #53. + +------------------------------------------------------------------- +Mon Apr 26 21:13:59 UTC 2021 - Matej Cepl + +- Added add-configuration-for-play-pause-next-prev-multimedi.patch + +------------------------------------------------------------------- +Thu Mar 25 10:10:36 UTC 2021 - Matej Cepl + +- Relax requirements somehow + +------------------------------------------------------------------- +Tue Jan 19 17:52:03 UTC 2021 - Denis Kondratenko + +- New in 0.13 release + * Allow root app to run on the user session, fixes #21 + * Include pamixer in the pattern, fixes #32 + +------------------------------------------------------------------- +Tue Nov 17 12:24:13 UTC 2020 - Fabian Vogt + +- Move %pattern_graphicalenvironments to the proper section +- Drop unused betatest bcond + +------------------------------------------------------------------- +Mon Oct 12 12:43:19 UTC 2020 - Denis Kondratenko + +- New in 0.12 release + * Allow increasing volume over 100% + * Add bc to the sway-branding requirement + +------------------------------------------------------------------- +Tue Sep 15 08:23:01 UTC 2020 - Fabian Vogt + +- Make patterns-openSUSEway properly behaved: + * Use proper description (it's very user visible!) + * Don't overwrite the category (set by %pattern_graphicalenvironments) + +------------------------------------------------------------------- +Fri Sep 11 09:43:40 UTC 2020 - Denis Kondratenko + +- New in 0.11 release + * greetd support fixes #27 + * correct environment for sway session, fixes #28, bsc#1176195 +- Remove old files from environment enforcing, bsc#1176195 +- Add greetd support + +------------------------------------------------------------------- +Tue Sep 8 14:51:38 UTC 2020 - Denis Kondratenko + +- Add gfxboot and gfxboot-branding-openSUSE to have better boot experience + +------------------------------------------------------------------- +Sun Aug 30 09:13:29 UTC 2020 - Denis Kondratenko + +- New in 0.10 release + * don't force qt theme, fixes #24 + +------------------------------------------------------------------- +Wed Aug 5 12:58:47 UTC 2020 - Denis Kondratenko + +- Add pipewire and xdg-desktop-portal-wlr for the screensharing, fixes #13 + +------------------------------------------------------------------- +Tue Aug 4 10:29:26 UTC 2020 - Denis Kondratenko + +- New in 0.9 release + * fix gtk cursor and icon theme, fixes #22 + * correct brightness adjustment indicator, fixes #23 + * include all user custom configs +- fix name in enviroment.d to 50-openSUSEway.sh + +------------------------------------------------------------------- +Mon Jul 31 11:00:00 UTC 2020 - Denis Kondratenko + +- New in 0.8 release + * Add wob support + * pamixer is dependency for wob controls in config +- Add command-not-found to the environment + +------------------------------------------------------------------- +Mon Jul 20 12:05:29 UTC 2020 - Denis Kondratenko + +- New in 0.7 release + * update sway conf to the 1.5 + * adding GTK and QT themes + +------------------------------------------------------------------- +Tue Jul 14 11:40:24 UTC 2020 - Denis Kondratenko + +- New 0.6 release + * Enforce tty branding in the branded sway + * Don't start mako explicitly + * Only include sway config files with .conf file extension +- Add initial requirements to the openSUSEway desktop meta package + * add openSUSEway pattern + +------------------------------------------------------------------- +Mon Jun 22 16:02:30 UTC 2020 - Denis Kondratenko + +- New 0.3 release + * fixes double status bar issue +- Remove uneeded Requires for branding packages + +------------------------------------------------------------------- +Fri Jun 19 19:56:45 UTC 2020 - Denis Kondratenko + +- Fix typo in the Source URL + +------------------------------------------------------------------- +Fri Jun 5 14:21:35 UTC 2020 - Denis Kondratenko + +- Add waybar branding package +- Add alacritty customization + +------------------------------------------------------------------- +Fri Jun 5 13:50:14 UTC 2020 - Denis Kondratenko + +- Add metapackage in order to store more brandings packages under + +------------------------------------------------------------------- +Fri Jun 5 10:03:12 UTC 2020 - Denis Kondratenko + +- Add wofi config and style to sysconfdir + * wofi doesn't support distibution specific dirs from package + * spec seds distro specific dirs to sway config for wofi + +------------------------------------------------------------------- +Fri Jun 5 09:28:00 UTC 2020 - Denis Kondratenko + +- Add Source URL and build from archive + +------------------------------------------------------------------- +Fri May 29 15:09:04 UTC 2020 - Denis Kondratenko + +- Initial package to brand Sway in openSUSE way diff --git a/openSUSEway.obsinfo b/openSUSEway.obsinfo new file mode 100644 index 0000000..a29ed96 --- /dev/null +++ b/openSUSEway.obsinfo @@ -0,0 +1,4 @@ +name: openSUSEway +version: 0.16.5 +mtime: 1730305232 +commit: 30f33d86d1b3ffed555e0f71ee62651add1f8378 diff --git a/openSUSEway.spec b/openSUSEway.spec new file mode 100644 index 0000000..6753c17 --- /dev/null +++ b/openSUSEway.spec @@ -0,0 +1,306 @@ +# +# spec file for package openSUSEway +# +# Copyright (c) 2024 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/ +# + + +%define sway_version %(rpm -q --queryformat "%%{version}" sway) +%define waybar_version %(rpm -q --queryformat "%%{version}" waybar) + +Name: openSUSEway +Version: 0.16.5 +Release: 0 +Summary: The openSUSEway desktop environment meta package +License: MIT +Group: Metapackages +URL: https://github.com/openSUSE/openSUSEway +Source0: https://github.com/openSUSE/openSUSEway/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: aaa_base +BuildRequires: pkgconfig(systemd) + +# system +Requires: wget +Requires: NetworkManager +Requires: aaa_base +Requires: bash-completion +Requires: bzip2 +Requires: command-not-found +Requires: curl +Requires: git +Requires: glibc-locale +Requires: grep +Requires: gzip +Requires: jq +Requires: less +Requires: sudo +Requires: tar + +# basic DE +Requires: greetd +Requires: pipewire +Requires: sway-marker +Requires: (gtkgreet or wlgreet) +Recommends: bluez +Recommends: firefox +Recommends: grim +Recommends: slurp +Recommends: tlp +Suggests: mpv +Suggests: vifm +Suggests: vim +Suggests: imv + +# basic multi-media +Requires: clipman +Requires: mpris-ctl +Requires: wl-clipboard + +# branding +Requires: waybar-branding-openSUSE +Requires: sway-branding-openSUSE +%ifarch x86_64 %{ix86} +Requires: gfxboot-branding-openSUSE +%endif + +# xdg portals and utils +Requires: xdg-desktop-portal +Requires: xdg-desktop-portal-gtk +Requires: xdg-desktop-portal-wlr +Requires: xdg-utils + +# Appearance +Requires: adwaita-icon-theme +Requires: gtk3-metatheme-adwaita +Requires: metatheme-adwaita-common +Recommends: adwaita-qt5 +Recommends: libqt5-qtwayland +Recommends: qt5ct + +# Fonts +Requires: adobe-sourcecodepro-fonts +Requires: adobe-sourcesanspro-fonts +Requires: adobe-sourceserifpro-fonts +Requires: cantarell-fonts +Requires: dejavu-fonts +Requires: ghostscript-fonts-other +Requires: ghostscript-fonts-std +Requires: google-carlito-fonts +Requires: google-droid-fonts +Requires: google-opensans-fonts +Requires: google-roboto-fonts +Requires: noto-coloremoji-fonts +Requires: noto-emoji-fonts +Requires: noto-sans-fonts + +%description +This meta-package aggregates openSUSEway desktop environment packages. + +%package -n patterns-openSUSEway +%pattern_graphicalenvironments +Summary: The openSUSEway desktop environment pattern +Group: Metapackages +Provides: pattern() = openSUSEway +Provides: pattern-icon() = pattern-sway +Provides: pattern-order() = 1460 +Provides: pattern-visible() +URL: https://github.com/openSUSE/openSUSEway +BuildRequires: patterns-rpm-macros +Requires: openSUSEway + +%description -n patterns-openSUSEway +This pattern installs the openSUSE look and feel for sway. + +%package -n sway-branding-openSUSE +Summary: openSUSE branding of sway +Group: System/GUI/Other +BuildRequires: sway +Requires: SwayNotificationCenter +Requires: bc +Requires: brightnessctl +Requires: fontawesome-fonts +Requires: jq +Requires: pamixer +Requires: patterns-sway-sway +Requires: pavucontrol +Requires: playerctl +Requires: polkit-default-privs +Requires: polkit-gnome +Requires: sway +Requires: wallpaper-branding-openSUSE +Requires: wob +Provides: sway-branding = %{version} +Conflicts: sway-branding +Supplements: (sway and branding-openSUSE) + +#BRAND: /etc/sway/config and /etc/sway/config.d/ +#BRAND: contain openSUSE config and branding + +%description -n sway-branding-openSUSE +This package provides the openSUSE look and feel for sway. + +%package -n waybar-branding-openSUSE +Summary: openSUSE branding of waybar +Group: System/GUI/Other +BuildRequires: waybar +Provides: waybar-branding = %{version} +Conflicts: waybar-branding +Supplements: (waybar and branding-openSUSE) + +#BRAND: /etc/xdg/waybar/config and /etc/xdg/waybar/style.css +#BRAND: contain openSUSE config and branding + +%description -n waybar-branding-openSUSE +This package provides the openSUSE look and feel for waybar. + +%prep +%autosetup -p1 -n openSUSEway-%{version} + +%build + +%install + +## openSUSEway package +### qt5ct config to configure dark theme +install -D -p -m 644 qt5ct.conf %{buildroot}%{_sysconfdir}/xdg/qt5ct/qt5ct.conf +### greetd as a login manager +install -D -p -m 644 greetd/sway-config %{buildroot}%{_sysconfdir}/greetd/sway-config +install -D -p -m 644 greetd/config.toml %{buildroot}%{_sysconfdir}/greetd/config.toml.way +install -D -p -m 644 greetd/environments %{buildroot}%{_sysconfdir}/greetd/environments +install -D -p -m 644 greetd/style.css %{buildroot}%{_sysconfdir}/greetd/style.css + +## openSUSEway pattern package +mkdir -p %{buildroot}/%{_defaultdocdir}/patterns/ +echo 'This file marks the pattern openSUSEway to be installed.' >%{buildroot}%{_defaultdocdir}/patterns/openSUSEway.txt + +## Sway +install -D -p -m 644 .config/sway/config %{buildroot}%{_sysconfdir}/sway/config +install -D -p -m 644 .config/sway/env %{buildroot}%{_sysconfdir}/sway/env +install -D -p -m 644 .config/sway/config.d/50-openSUSE.conf %{buildroot}%{_sysconfdir}/sway/config.d/50-openSUSE.conf +install -D -p -m 644 .config/sway/config.d/55-openSUSE-windows.conf %{buildroot}%{_sysconfdir}/sway/config.d/55-openSUSE-windows.conf + +install -D -p -m 644 sway/sway-session.target %{buildroot}%{_prefix}/lib/systemd/user/sway-session.target +install -D -p -m 644 sway/sway.service %{buildroot}%{_prefix}/lib/systemd/user/sway.service +install -D -p -m 644 sway/sway.desktop %{buildroot}%{_datadir}/wayland-sessions/sway.desktop.brand +install -D -p -m 755 sway/sway-run.sh %{buildroot}%{_bindir}/sway-run.sh + +### alacritty +# so far doesn't have special branding package and it doesn't support system wide config +install -D -p -m 644 .config/alacritty/alacritty.toml %{buildroot}%{_sysconfdir}/alacritty/alacritty.toml + +## wofi +install -D -p -m 644 .config/wofi/config %{buildroot}%{_sysconfdir}/wofi/config +install -D -p -m 644 .config/wofi/style.css %{buildroot}%{_sysconfdir}/wofi/style.css +#set wofi config and style to the system dir +sed -i -e "s|wofi --show.*|wofi --conf=%{_sysconfdir}/wofi/config --style=%{_sysconfdir}/wofi/style.css|g" %{buildroot}%{_sysconfdir}/sway/config.d/50-openSUSE.conf + +## waybar +install -D -p -m 644 .config/waybar/config %{buildroot}%{_sysconfdir}/xdg/waybar/config +install -D -p -m 644 .config/waybar/style.css %{buildroot}%{_sysconfdir}/xdg/waybar/style.css +install -D -p -m 755 .config/waybar/scratchpad-indicator.sh %{buildroot}%{_datadir}/openSUSEway/helpers/scratchpad-indicator.sh + +## wob +install -D -p -m 644 .config/wob/wob.ini %{buildroot}%{_sysconfdir}/sway/wob/wob.ini + +## swaync +install -D -p -m 644 .config/swaync/config.json %{buildroot}%{_sysconfdir}/sway/swaync/config.json +install -D -p -m 644 .config/swaync/style.css %{buildroot}%{_sysconfdir}/sway/swaync/style.css + +## swaylock +install -D -p -m 644 .config/swaylock/openSUSEway.conf %{buildroot}%{_sysconfdir}/swaylock/openSUSEway.conf + +%pre -n openSUSEway +# bug #1176195, don't force enviroment, cleaning up old installations +test -e %{_sysconfdir}/profile.d/openSUSEway.sh && rm %{_sysconfdir}/profile.d/openSUSEway.sh || true +test -e %{_prefix}/lib/environment.d/50-openSUSEway.conf && rm %{_prefix}/lib/environment.d/50-openSUSEway.conf || true + +%post -n openSUSEway +test -e %{_sysconfdir}/greetd/config.toml && \ + mv -n %{_sysconfdir}/greetd/config.toml %{_sysconfdir}/greetd/config.toml.orig || true +cp %{_sysconfdir}/greetd/config.toml.way %{_sysconfdir}/greetd/config.toml + +%postun -n openSUSEway +test -e %{_sysconfdir}/greetd/config.toml.orig && \ + mv %{_sysconfdir}/greetd/config.toml.orig %{_sysconfdir}/greetd/config.toml || true + +%pre -n sway-branding-openSUSE +%service_add_pre sway-session.target sway.service + +%post -n sway-branding-openSUSE +test -e %{_datadir}/wayland-sessions/sway.desktop && \ + mv -n %{_datadir}/wayland-sessions/sway.desktop %{_datadir}/wayland-sessions/sway.desktop.orig || true +cp %{_datadir}/wayland-sessions/sway.desktop.brand %{_datadir}/wayland-sessions/sway.desktop +%service_add_post sway-session.target sway.service + +%preun -n sway-branding-openSUSE +%service_del_preun sway-session.target sway.service + +%postun -n sway-branding-openSUSE +test -e %{_datadir}/wayland-sessions/sway.desktop.orig && \ + mv %{_datadir}/wayland-sessions/sway.desktop.orig %{_datadir}/wayland-sessions/sway.desktop || true +%service_del_postun sway-session.target sway.service + +%files +%dir %{_sysconfdir}/xdg/qt5ct/ +%config(noreplace) %{_sysconfdir}/xdg/qt5ct/qt5ct.conf +%dir %{_sysconfdir}/greetd/ +%attr(644,greeter,greeter) %config %{_sysconfdir}/greetd/config.toml.way +%attr(644,greeter,greeter) %config %{_sysconfdir}/greetd/sway-config +%attr(644,greeter,greeter) %config %{_sysconfdir}/greetd/environments +%attr(644,greeter,greeter) %config %{_sysconfdir}/greetd/style.css +%dir %{_datadir}/openSUSEway/ +%dir %{_datadir}/openSUSEway/helpers/ + +%files -n patterns-openSUSEway +%dir %{_defaultdocdir}/patterns +%{_defaultdocdir}/patterns/openSUSEway.txt + +%files -n sway-branding-openSUSE +%dir %{_sysconfdir}/sway +%config %{_sysconfdir}/sway/config +%config %{_sysconfdir}/sway/env +%dir %{_sysconfdir}/sway/config.d +%config %{_sysconfdir}/sway/config.d/50-openSUSE.conf +%config %{_sysconfdir}/sway/config.d/55-openSUSE-windows.conf +%{_prefix}/lib/systemd/user/sway-session.target +%{_prefix}/lib/systemd/user/sway.service +%{_datadir}/wayland-sessions/sway.desktop.brand +%{_bindir}/sway-run.sh + +%dir %{_sysconfdir}/alacritty +%config(noreplace) %{_sysconfdir}/alacritty/alacritty.toml + +%dir %{_sysconfdir}/wofi +%config(noreplace) %{_sysconfdir}/wofi/config +%config(noreplace) %{_sysconfdir}/wofi/style.css + +%dir %{_sysconfdir}/sway/wob +%config %{_sysconfdir}/sway/wob/wob.ini + +%dir %{_sysconfdir}/sway/swaync +%config %{_sysconfdir}/sway/swaync/config.json +%config %{_sysconfdir}/sway/swaync/style.css + +%dir %{_sysconfdir}/swaylock +%config(noreplace) %{_sysconfdir}/swaylock/openSUSEway.conf + +%files -n waybar-branding-openSUSE +%dir %{_sysconfdir}/xdg/waybar +%config(noreplace) %{_sysconfdir}/xdg/waybar/config +%config(noreplace) %{_sysconfdir}/xdg/waybar/style.css +%{_datadir}/openSUSEway/helpers/scratchpad-indicator.sh + +%changelog