Skip to content

Commit f3347f1

Browse files
committed
feat: Add gnome-randr
1 parent 47600e8 commit f3347f1

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
116116
rpm-ostree install \
117117
steamdeck-backgrounds \
118118
gradience \
119+
gnome-randr-rust \
119120
gnome-shell-extension-user-theme \
120121
gnome-shell-extension-gsconnect \
121122
gnome-shell-extension-system76-scheduler \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ Ported SteamOS and ChimeraOS packages, among others used by Bazzite, are built o
171171
|[extest](https://github.com/Supreeeme/extest)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite-multilib/package/extest/status_image/last_build.png?)|
172172
|gamescope|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gamescope/status_image/last_build.png?)|
173173
|[gamescope-session](https://github.com/ChimeraOS/gamescope-session)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gamescope-session/status_image/last_build.png?)|
174+
|[gnome-randr-rust](https://github.com/maxwellainatchi/gnome-randr-rust)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-randr-rust/status_image/last_build.png?)|
174175
|gnome-shell-extension-bazzite-menu|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-shell-extension-bazzite-menu/status_image/last_build.png?)|
175176
|[gnome-shell-extension-caribou-blocker](https://extensions.gnome.org/extension/1326/block-caribou/)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-shell-extension-caribou-blocker/status_image/last_build.png?)|
176177
|[gnome-shell-extension-hanabi](https://github.com/jeffshee/gnome-ext-hanabi)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-shell-extension-hanabi/status_image/last_build.png?)|
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2022 Valve Corporation
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Name: gnome-randr-rust
2+
Version: {{{ git_dir_version }}}
3+
Release: 1%{?dist}
4+
Summary: xrandr for Gnome/wayland, on distros that don't support wlr-randr
5+
6+
License: MIT
7+
URL: https://github.com/maxwellainatchi/gnome-randr-rust
8+
Source: %{url}/archive/refs/heads/main.zip
9+
10+
BuildRequires: rust-packaging >= 21
11+
BuildRequires: lm_sensors-devel
12+
BuildRequires: systemd-rpm-macros
13+
14+
%description
15+
xrandr for Gnome/wayland, on distros that don't support wlr-randr
16+
17+
%prep
18+
%setup -n %{name}-main
19+
%cargo_prep
20+
21+
%generate_buildrequires
22+
%cargo_generate_buildrequires
23+
24+
%build
25+
%cargo_build
26+
27+
%install
28+
%cargo_install
29+
rm -rf %{buildroot}%{_datadir}/cargo/registry
30+
31+
%if %{with check}
32+
%check
33+
%cargo_test
34+
%endif
35+
36+
%files
37+
%{_bindir}/gnome-randr
38+
39+
%changelog
40+
%autochangelog

0 commit comments

Comments
 (0)