Skip to content

Commit d918c89

Browse files
committed
background: install a default wallpaper
The image was donated by @erikvanhamme.
1 parent aa734bb commit d918c89

6 files changed

Lines changed: 11 additions & 3 deletions

File tree

data/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
install_data('wayfire.png', install_dir: icon_dir)
2+
install_data('wallpaper.jpg', install_dir: resource_dir)

data/wallpaper.jpg

5.7 MB
Loading

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ add_project_arguments('-DICONDIR="' + icon_dir + '"', language : 'cpp')
4040
add_project_arguments('-DMETADATA_DIR="' + metadata_dir + '"', language : 'cpp')
4141
add_project_arguments('-DSYSCONF_DIR="' + sysconf_dir + '"', language : 'cpp')
4242

43+
resource_dir = join_paths(get_option('prefix'), 'share', 'wayfire')
4344
subdir('metadata')
4445
subdir('proto')
4546
subdir('data')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<category>Shell</category>
66
<option name="image" type="string">
77
<_short>Background</_short>
8-
<default>&lt;file or directory&gt;</default>
8+
<default>@wallpaper@</default>
99
<hint>file</hint>
1010
<hint>directory</hint>
1111
</option>

metadata/meson.build

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
install_data('background.xml', install_dir: metadata_dir)
1+
configure_file(input: 'background.xml.in', output: 'background.xml',
2+
configuration: {
3+
'wallpaper': join_paths(resource_dir, 'wallpaper.jpg')
4+
},
5+
install: true,
6+
install_dir: metadata_dir)
7+
28
install_data('dock.xml', install_dir: metadata_dir)
39
install_data('panel.xml', install_dir: metadata_dir)

wf-shell.ini.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[background]
44
# Full path to image or directory of images
5-
image = /home/ilex/Desktop/sea-tree.jpeg
5+
# image = /usr/share/wayfire/wallpaper.jpg
66
# Whether to scale images or preserve background ratio
77
preserve_aspect = 0
88
# In the case of directory, timeout between changing backgrounds, in seconds

0 commit comments

Comments
 (0)