forked from ublue-os/bazzite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ublue-os/main
[pull] main from ublue-os:main
- Loading branch information
Showing
9 changed files
with
186 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
spec_files/gnome-shell-extension-just-perfection/gnome-shell-extension-just-perfection.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
%global extension just-perfection | ||
%global uuid %{extension}-desktop@%{extension} | ||
|
||
Name: gnome-shell-extension-%{extension} | ||
Version: 30.0 | ||
Release: %autorelease | ||
Summary: GNOME Shell extension to change behavior and disable UI elements | ||
License: GPL-3.0-only | ||
URL: https://gitlab.gnome.org/jrahmatzadeh/just-perfection | ||
BuildArch: noarch | ||
|
||
Source: %{url}/-/archive/%{version}/%{extension}-%{version}.tar.gz | ||
|
||
BuildRequires: glib2-devel | ||
BuildRequires: gettext | ||
|
||
Requires: gnome-shell >= 45 | ||
Recommends: gnome-extensions-app | ||
Provides: %{extension} = %{version}-%{release} | ||
|
||
|
||
%description | ||
%{summary}. | ||
|
||
|
||
%prep | ||
%autosetup -n %{extension}-%{version} | ||
|
||
# fix spurious-executable-perm and script-without-shebang rpmlint warnings/errors | ||
find -type f -print -exec chmod 644 {} \; | ||
|
||
|
||
%build | ||
glib-compile-resources \ | ||
--sourcedir src/data \ | ||
src/data/resources.gresource.xml | ||
|
||
|
||
%install | ||
pushd src | ||
|
||
# install main extension files | ||
install -d -m 0755 %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} | ||
cp -r --preserve=timestamps \ | ||
*.js stylesheet.css metadata.json \ | ||
lib data/resources.gresource \ | ||
%{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} | ||
|
||
# install the schema file | ||
install -D -p -m 0644 \ | ||
schemas/org.gnome.shell.extensions.%{extension}.gschema.xml \ | ||
%{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{extension}.gschema.xml | ||
|
||
popd | ||
|
||
# install locale files | ||
pushd po | ||
for po in *.po; do | ||
install -d -m 0755 %{buildroot}%{_datadir}/locale/${po%.po}/LC_MESSAGES | ||
msgfmt -o %{buildroot}%{_datadir}/locale/${po%.po}/LC_MESSAGES/%{extension}.mo $po | ||
done | ||
popd | ||
%find_lang %{extension} | ||
|
||
|
||
%files -f %{extension}.lang | ||
%license LICENSE | ||
%doc CHANGELOG.md | ||
%{_datadir}/gnome-shell/extensions/%{uuid} | ||
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{extension}.gschema.xml | ||
|
||
|
||
%changelog | ||
%autochangelog |
10 changes: 10 additions & 0 deletions
10
system_files/desktop/shared/usr/lib/systemd/system/bazzite-snapper-setup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Create a default snapper config if snapper is unconfigured | ||
After=local-fs.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/libexec/bazzite-snapper-setup | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
4 changes: 4 additions & 0 deletions
4
system_files/desktop/shared/usr/libexec/bazzite-snapper-setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
if ! snapper get-config >/dev/null 2>&1; then | ||
snapper create-config /var/home | ||
fi |
63 changes: 63 additions & 0 deletions
63
system_files/desktop/shared/usr/share/snapper/config-templates/default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# subvolume to snapshot | ||
# With ostree it is pointless to snapshot /, | ||
# so we set the root config to snapshot /var/home instead | ||
SUBVOLUME="/var/home" | ||
|
||
# filesystem type | ||
FSTYPE="btrfs" | ||
|
||
|
||
# btrfs qgroup for space aware cleanup algorithms | ||
QGROUP="" | ||
|
||
|
||
# fraction or absolute size of the filesystems space the snapshots may use | ||
SPACE_LIMIT="0.5" | ||
|
||
# fraction or absolute size of the filesystems space that should be free | ||
FREE_LIMIT="0.2" | ||
|
||
|
||
# users and groups allowed to work with config | ||
ALLOW_USERS="" | ||
ALLOW_GROUPS="" | ||
|
||
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots | ||
# directory | ||
SYNC_ACL="no" | ||
|
||
|
||
# start comparing pre- and post-snapshot in background after creating | ||
# post-snapshot | ||
BACKGROUND_COMPARISON="yes" | ||
|
||
|
||
# run daily number cleanup | ||
NUMBER_CLEANUP="yes" | ||
|
||
# limit for number cleanup | ||
NUMBER_MIN_AGE="1800" | ||
NUMBER_LIMIT="50" | ||
NUMBER_LIMIT_IMPORTANT="10" | ||
|
||
|
||
# create hourly snapshots | ||
TIMELINE_CREATE="yes" | ||
|
||
# cleanup hourly snapshots after some time | ||
TIMELINE_CLEANUP="yes" | ||
|
||
# limits for timeline cleanup | ||
TIMELINE_MIN_AGE="1800" | ||
TIMELINE_LIMIT_HOURLY="8" | ||
TIMELINE_LIMIT_DAILY="4" | ||
TIMELINE_LIMIT_WEEKLY="4" | ||
TIMELINE_LIMIT_MONTHLY="3" | ||
TIMELINE_LIMIT_YEARLY="0" | ||
|
||
|
||
# cleanup empty pre-post-pairs | ||
EMPTY_PRE_POST_CLEANUP="yes" | ||
|
||
# limits for empty pre-post-pair cleanup | ||
EMPTY_PRE_POST_MIN_AGE="90" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters