%global build_timestamp %(date -u +%%Y%%m%%d%%H%%M%%S) Name: screen-switch Version: 1.0 Release: %{build_timestamp}%{?dist} Summary: Helper script to swap focused output on a sway-driven handheld License: GPL-3.0-or-later URL: https://github.com/ROCKNIX/distribution/tree/next/projects/ROCKNIX/packages/apps/screen-switch Source0: screen_switch BuildArch: noarch Requires: bash Requires: sway Requires: jq %description A tiny bash helper used on ROCKNIX-class handhelds (incl. the AYANEO Pocket DS) to swap the focused sway output between the internal panel and an attached HDMI display. Bound to a hotkey by the device-specific ROCKNIX overlay; on Fedora it can be wired up via swayrc bindsym, an udev rule, or directly invoked by a user script. %prep # Source0 is dropped in directly; nothing to extract. %build # Pure shell — nothing to build. %install install -D -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/screen_switch %files %{_bindir}/screen_switch %changelog * Wed May 06 2026 Pocket DS Maintainers - %{version}-%{release} - Release auto-stamped from build_timestamp; full history in git log