From dc14f66c3b7a3f746810fa5176d9e018fa24eb3a Mon Sep 17 00:00:00 2001 From: Owen-sz Date: Mon, 15 Jun 2026 14:12:26 +0200 Subject: [PATCH] add: jwc Signed-off-by: Owen-sz --- anda/desktops/jwc/anda.hcl | 5 ++++ anda/desktops/jwc/jwc.spec | 46 +++++++++++++++++++++++++++++++++++ anda/desktops/jwc/update.rhai | 5 ++++ 3 files changed, 56 insertions(+) create mode 100644 anda/desktops/jwc/anda.hcl create mode 100644 anda/desktops/jwc/jwc.spec create mode 100644 anda/desktops/jwc/update.rhai diff --git a/anda/desktops/jwc/anda.hcl b/anda/desktops/jwc/anda.hcl new file mode 100644 index 0000000000..064d2591d2 --- /dev/null +++ b/anda/desktops/jwc/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "jwc.spec" + } +} diff --git a/anda/desktops/jwc/jwc.spec b/anda/desktops/jwc/jwc.spec new file mode 100644 index 0000000000..ec8dd57b02 --- /dev/null +++ b/anda/desktops/jwc/jwc.spec @@ -0,0 +1,46 @@ +%global commit cbea3595ab35518721de77ed456ded94bcd20777 +%global commit_date 20260320 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: jwc +Version: 0~%{commit_date}git.%{shortcommit} +Release: 1%{?dist} +Summary: A file based wayland compositor +License: GPL-3.0-or-later +URL: https://git.sr.ht/~jsnr/jwc +Source0: %{url}/archive/%{commit}.tar.gz +Packager: Owen Zimmerman + +BuildRequires: make +BuildRequires: gcc +BuildRequires: wayland-devel +BuildRequires: wayland-protocols-devel +BuildRequires: pkgconfig(wlroots) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(fuse3) + +%description +jwc is a file based tiling Wayland compositor. jwc seeks to expose all +of its state through file operations, and allow acting on nodes, +windows and monitors through the plain text utils that you are accustomed to. + +Want to move the focused window to workspace 3? echo 3 > $JWC_ROOT/nodes/focused/workspace + +jwc is very much in beta, many more features and polish is to come. + +%prep +%autosetup -n %{name}-%{commit} + +%build +%make_build + +%install +%make_install PREFIX=%{_prefix} + +%files +%doc README.md +%{_bindir}/%{name} + +%changelog +* Mon Jun 15 2026 Owen-sz +- initial commit diff --git a/anda/desktops/jwc/update.rhai b/anda/desktops/jwc/update.rhai new file mode 100644 index 0000000000..4c7a6a5aef --- /dev/null +++ b/anda/desktops/jwc/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", sourcehut_commit("~jsnr/jwc")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}