2022-08-09 13:42:08 -04:00
|
|
|
#!/bin/sh
|
2024-04-22 07:48:54 -04:00
|
|
|
#DivestOS: A mobile operating system divested from the norm.
|
2022-08-09 13:42:08 -04:00
|
|
|
#Copyright (c) 2022 Divested Computing Group
|
|
|
|
#
|
|
|
|
#This program is free software: you can redistribute it and/or modify
|
2024-07-27 18:00:56 -04:00
|
|
|
#it under the terms of the GNU Affero General Public License as published by
|
2022-08-09 13:42:08 -04:00
|
|
|
#the Free Software Foundation, either version 3 of the License, or
|
|
|
|
#(at your option) any later version.
|
|
|
|
#
|
|
|
|
#This program is distributed in the hope that it will be useful,
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2024-07-27 18:00:56 -04:00
|
|
|
#GNU Affero General Public License for more details.
|
2022-08-09 13:42:08 -04:00
|
|
|
#
|
2024-07-27 18:00:56 -04:00
|
|
|
#You should have received a copy of the GNU Affero General Public License
|
2024-07-27 18:31:21 -04:00
|
|
|
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2022-08-15 16:37:41 -04:00
|
|
|
umask 0022;
|
|
|
|
set -uo pipefail;
|
2022-08-09 13:42:08 -04:00
|
|
|
|
|
|
|
mkdir drawable-nodpi drawable-hdpi drawable-xhdpi drawable-xxhdpi drawable-xxxhdpi drawable-sw600dp-nodpi drawable-sw720dp-nodpi;
|
|
|
|
|
|
|
|
cp -fv "$1" drawable-nodpi/default_wallpaper.png;
|
|
|
|
cp -fv "$1" drawable-hdpi/default_wallpaper.png;
|
|
|
|
cp -fv "$1" drawable-xhdpi/default_wallpaper.png;
|
|
|
|
cp -fv "$1" drawable-xxhdpi/default_wallpaper.png;
|
|
|
|
cp -fv "$1" drawable-xxxhdpi/default_wallpaper.png;
|
|
|
|
|
|
|
|
mogrify -resize x960 -gravity "$2" -extent 960x960 drawable-nodpi/default_wallpaper.png;
|
|
|
|
mogrify -resize x1080 -gravity "$2" -extent 1080x1080 drawable-hdpi/default_wallpaper.png;
|
|
|
|
mogrify -resize x1440 -gravity "$2" -extent 1440x1440 drawable-xhdpi/default_wallpaper.png;
|
|
|
|
mogrify -resize x1920 -gravity "$2" -extent 1920x1920 drawable-xxhdpi/default_wallpaper.png;
|
|
|
|
mogrify -resize x2560 -gravity "$2" -extent 2560x2560 drawable-xxxhdpi/default_wallpaper.png;
|
|
|
|
|
|
|
|
cp -fv drawable-xxhdpi/default_wallpaper.png drawable-sw600dp-nodpi/;
|
|
|
|
cp -fv drawable-xxhdpi/default_wallpaper.png drawable-sw720dp-nodpi/;
|