Skip to content

Commit

Permalink
Fix default wallpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
luyatshimbalanga committed Oct 4, 2022
1 parent 6348706 commit 0815aa0
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SUBDIRS = default extras
VERSION = 37.0.3
VERSION = 37.0.4
NAME = f37-backgrounds-$(VERSION)

all:
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,43 @@ A set of default and supplemental wallpapers for Fedora 37
One way to test these is to install them on your system
* obtain the src rpm, for example using
```bash
wget https://github.com/fedoradesign/backgrounds/releases/download/v37.0.3/f37-backgrounds-37.0.3-1.f37.src.rpm
wget https://github.com/fedoradesign/backgrounds/releases/download/v37.0.4/f37-backgrounds-37.0.4-1.f37.src.rpm
```
* install tools to build an rpm file, [follow the guide](https://fedoramagazine.org/how-rpm-packages-are-made-the-source-rpm/):
```bash
sudo dnf install fedora-packager
```
* then build the rpm
```bash
sudo dnf builddep f37-backgrounds-37.0.3-1.f37.src.rpm
rpmbuild --rebuild f37-backgrounds-37.0.3-1.f37.src.rpm
sudo dnf builddep f37-backgrounds-37.0.4-1.f37.src.rpm
rpmbuild --rebuild f37-backgrounds-37.0.4-1.f37.src.rpm
```
* to install the rpm go to the directory where it has been built, assuming the commands above have been used, the following should work
```bash
cd rpmbuild/RPMS/noarch
```
* then install the base
```bash
dnf install f37-backgrounds-base-37.0.3-1.f37.noarch.rpm
dnf install f37-backgrounds-base-37.0.4-1.f37.noarch.rpm
```
* finally install backgrounds for your desktop, for example for KDE
```bash
dnf install f37-backgrounds-kde-37.0.3-1.f37.noarch.rpm
dnf install f37-backgrounds-kde-37.0.4-1.f37.noarch.rpm
```

The directory should also contain the following rpms

* f37-backgrounds-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-extras-gnome-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-gnome-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-extras-kde-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-kde-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-base-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-extras-mate-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-mate-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-extras-base-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-extras-xfce-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-xfce-37.0.3-1.f37.noarch.rpm
* f37-backgrounds-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-extras-gnome-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-gnome-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-extras-kde-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-kde-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-base-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-extras-mate-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-mate-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-extras-base-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-extras-xfce-37.0.4-1.f37.noarch.rpm
* f37-backgrounds-xfce-37.0.4-1.f37.noarch.rpm

* You can then change the wallpaper, for example on KDE, right click on the desktop and a menu should appear. Click on the menu and choose *Configure Desktop* then select the icon *Wallpaper* and choose one of the newly installed wallpers.

12 changes: 6 additions & 6 deletions default/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ install:
#~ Base background
for tod in 01-day 01-night; do \
$(INSTALL) $(WP_NAME)-$${tod}.webp $(WP_DIR)/default/$(WP_NAME)-$${tod}.webp ; \
$(INSTALL) $(WP_NAME)-$${tod}.png $(WP_DIR)/default/$(WP_NAME)-$${tod}.png ; \
done;
$(LN_S) ../default/$(WP_NAME)-01-day.webp $(WP_DIR)/default/$(WP_NAME).webp
$(INSTALL) $(WP_NAME).xml $(WP_DIR)/default/$(WP_NAME).xml
Expand All @@ -39,7 +40,7 @@ install:
2160x1440 2304x1440 2560x1440 2560x1600 2960x1440 3000x2000 3200x1800 3440x1440 3840x2160; do \
$(LN_S) ../../../../backgrounds/$(WP_NAME)/default/$(WP_NAME).webp \
$(KDE_BG_DIR)/$(WP_BIGNAME)/contents/images/$${res}.webp ; \
$(LN_S) ../../../../backgrounds/$(WP_NAME)/default/$(WP_NAME)-02-night.webp \
$(LN_S) ../../../../backgrounds/$(WP_NAME)/default/$(WP_NAME)-01-night.webp \
$(KDE_BG_DIR)/$(WP_BIGNAME)/contents/images_dark/$${res}.webp ; \
done;
$(MKDIR) $(PLASMA_BG_DIR)/$(WP_BIGNAME)
Expand All @@ -51,8 +52,7 @@ install:

#~ XFCE background
$(MKDIR) $(XFCE_BG_DIR)
$(LN_S) $(WP_DIR_LN)/default/$(WP_NAME)-01-day.webp \
$(XFCE_BG_DIR)/$(WP_NAME).webp
for tod in 01-night; do \
$(LN_S) $(WP_DIR_LN)/default/$(WP_NAME)-$${tod}.webp $(XFCE_BG_DIR)/$(WP_NAME)-$${tod}.webp; \
done;
$(LN_S) $(WP_DIR_LN)/default/$(WP_NAME)-01-day.png \
$(XFCE_BG_DIR)/$(WP_NAME).png
$(LN_S) $(WP_DIR_LN)/default/$(WP_NAME)-01-night.png \
$(XFCE_BG_DIR)/$(WP_NAME)-01-night.png
12 changes: 6 additions & 6 deletions default/f37.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
<!-- We start with day at 8 AM. It will remain up for 10 hours. -->
<static>
<duration>36000.0</duration>
<file>/usr/share/backgrounds/f37/default/f37-01-day.webp</file>
<file>/usr/share/backgrounds/f37/default/f37-01-day.png</file>
</static>

<!-- Day ended and starts to transition to night at 6 PM. The transition lasts for 2 hours, ending at 8 PM. -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/usr/share/backgrounds/f37/default/f37-01-day.webp</from>
<to>/usr/share/backgrounds/f37/default/f37-01-night.webp</to>
<from>/usr/share/backgrounds/f37/default/f37-01-day.png</from>
<to>/usr/share/backgrounds/f37/default/f37-01-night.png</to>
</transition>

<!-- It's 8 PM, we're showing the night till 6 AM. -->
<static>
<duration>36000.0</duration>
<file>/usr/share/backgrounds/f37/default/f37-01-night.webp</file>
<file>/usr/share/backgrounds/f37/default/f37-01-night.png</file>
</static>

<!-- It's 6 AM, and we're starting to transition to day. Transition completes at 8 AM. -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/usr/share/backgrounds/f37/default/f37-01-night.webp</from>
<to>/usr/share/backgrounds/f37/default/f37-01-day.webp</to>
<from>/usr/share/backgrounds/f37/default/f37-01-night.png</from>
<to>/usr/share/backgrounds/f37/default/f37-01-day.png</to>
</transition>

</background>
4 changes: 2 additions & 2 deletions default/mate-backgrounds-f37.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<wallpaper deleted="false">
<name>Fedora 37 Day Default</name>
<filename>/usr/share/backgrounds/f37/default/f37-01-day.webp</filename>
<filename>/usr/share/backgrounds/f37/default/f37-01-day.png</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#3c6eb4</pcolor>
Expand All @@ -18,7 +18,7 @@

<wallpaper deleted="false">
<name>Fedora 37 Night</name>
<filename>/usr/share/backgrounds/f37/default/f37-01-night.webp</filename>
<filename>/usr/share/backgrounds/f37/default/f37-01-night.png</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#3c6eb4</pcolor>
Expand Down

0 comments on commit 0815aa0

Please sign in to comment.