Skip to content

Commit

Permalink
🔧 build: modify default background depending on Fedora release
Browse files Browse the repository at this point in the history
  • Loading branch information
electricduck committed Sep 16, 2022
1 parent 6000393 commit 93db1df
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
30 changes: 20 additions & 10 deletions src/common/post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,21 +324,31 @@ for file in ${to_remove[@]}; do
rm -rf $file
done
###########
# FIREFOX #
###########
#############
# WALLPAPER #
#############
case $version_id in
35) wallpaper="karsten-wurth-7BjhtdogU3A-unsplash" ;;
36) wallpaper="max-okhrimenko-R-CoXmMrWFk-unsplash" ;;
37) wallpaper="zara-walker-_pC5hT6aXfs-unsplash" ;;
*) wallpaper="jack-b-vcNPMwS08UI-unsplash" ;;
esac
if [[ -f "/usr/share/backgrounds/default/$wallpaper.jpg" ]]; then
set_property /usr/share/glib-2.0/schemas/io.elementary.desktop.gschema.override picture-uri "'file:\/\/\/usr\/share\/backgrounds\/default\/$wallpaper.jpg'"
ln -s /usr/share/backgrounds/default/$wallpaper.jpg /usr/share/backgrounds/elementaryos-default
fi
##########
# EXTRAS #
##########
# Customize Firefox
/usr/lib64/firefox-sodalite/setup.sh
rm -rf /usr/lib64/firefox-sodalite
rm -f /usr/lib64/firefox/browser/omni.ja_backup
########
# MISC #
########
# Sets background for System (in Switchboard) to use behind the logo
ln -s $(get_property /usr/share/glib-2.0/schemas/io.elementary.desktop.gschema.override picture-uri | sed -E 's/file:\/\///' | sed -E "s/'//g") /usr/share/backgrounds/elementaryos-default
# Updates schemas
glib-compile-schemas /usr/share/glib-2.0/schemas
dconf update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ show=1

[org.gnome.desktop.background:Pantheon]
picture-options='zoom'
picture-uri='file:///usr/share/backgrounds/default/max-okhrimenko-R-CoXmMrWFk-unsplash.jpg'
primary-color='#000000'
picture-uri=''
primary-color='#3689E6'

[org.gnome.desktop.datetime:Pantheon]
automatic-timezone=true
Expand Down

0 comments on commit 93db1df

Please sign in to comment.