stevee

My wayland statusbar
git clone git://gtms.dev/stevee
Log | Files | Refs | Submodules | README | LICENSE

commit 3da2b83a0b95cf33fa4c35f3dc1ac3ccfe7fef54
parent 67af604eb290497b057f72820a8ac3db11702217
Author: Tomas Nemec <owl@gtms.dev>
Date:   Sat,  1 Jun 2024 07:59:34 +0200

chore: rename levee to stevee

Diffstat:
MREADME.md | 29+++++++++++------------------
Mbuild.zig | 4++--
Mcontrib/package | 2+-
Msrc/Bar.zig | 2+-
Msrc/Buffer.zig | 2+-
Msrc/modules/Pulse.zig | 2+-
6 files changed, 17 insertions(+), 24 deletions(-)

diff --git a/README.md b/README.md @@ -1,17 +1,14 @@ +# [stevee] -# [levee] - -[![builds.sr.ht status](https://builds.sr.ht/~andreafeletto/levee/commits/main.svg)](https://builds.sr.ht/~andreafeletto/levee/commits/main) - -levee is a statusbar for the [river] wayland compositor, written in [zig] +stevee is a statusbar for the [river] wayland compositor, written in [zig] without any UI toolkit. It currently provides full support for workspace tags and displays pulseaudio volume, battery capacity and screen brightness. ## Build ``` -git clone --recurse-submodules https://git.sr.ht/~andreafeletto/levee -cd levee +git clone --recurse-submodules git://gtms.dev/stevee +cd stevee zig build --prefix ~/.local install ``` @@ -20,16 +17,16 @@ zig build --prefix ~/.local install Add the following toward the end of `$XDG_CONFIG_HOME/river/init`: ``` -riverctl spawn "levee pulse backlight battery" +riverctl spawn "stevee pulse" ``` ## Dependencies -* [zig] 0.11.0 -* [wayland] 1.21.0 -* [pixman] 0.42.0 -* [fcft] 3.1.5 -* [libpulse] 16.0 +- [zig] 0.11.0 +- [wayland] 1.21.0 +- [pixman] 0.42.0 +- [fcft] 3.1.5 +- [libpulse] 16.0 ## Contributing @@ -40,15 +37,11 @@ You are welcome to send patches to the [mailing list] or report bugs on the If you aren't familiar with `git send-email`, you can use the [web interface] or learn about it by following this excellent [tutorial]. -[levee]: https://sr.ht/~andreafeletto/levee +[stevee]: https://git.gtms.dev/stevee [river]: https://github.com/riverwm/river/ [zig]: https://ziglang.org/ [wayland]: https://wayland.freedesktop.org/ [pixman]: http://pixman.org/ [fcft]: https://codeberg.org/dnkl/fcft/ [libpulse]: https://www.freedesktop.org/wiki/Software/PulseAudio/ -[#andreafeletto]: ircs://irc.libera.chat/#andreafeletto -[mailing list]: https://lists.sr.ht/~andreafeletto/public-inbox -[issue tracker]: https://todo.sr.ht/~andreafeletto/levee -[web interface]: https://git.sr.ht/~andreafeletto/levee/send-email [tutorial]: https://git-send-email.io diff --git a/build.zig b/build.zig @@ -36,7 +36,7 @@ pub fn build(b: *std.Build) void { fcft.addImport("pixman", pixman); const exe = b.addExecutable(.{ - .name = "levee", + .name = "stevee", .root_source_file = .{ .path = "src/main.zig" }, .target = target, .optimize = optimize, @@ -63,6 +63,6 @@ pub fn build(b: *std.Build) void { run.addArgs(args); } - const run_step = b.step("run", "Run levee"); + const run_step = b.step("run", "Run stevee"); run_step.dependOn(&run.step); } diff --git a/contrib/package b/contrib/package @@ -2,7 +2,7 @@ set -e tag=$(git describe --exact-match) -name="levee-${tag#v}" +name="stevee-${tag#v}" mkdir -p "$name" git ls-files --recurse-submodules | xargs cp --parents -r -t "$name" tar -cavf "$name.tar.gz" "$name" diff --git a/src/Bar.zig b/src/Bar.zig @@ -44,7 +44,7 @@ pub fn create(monitor: *Monitor) !*Bar { self.background.viewport = try viewporter.getViewport(self.background.surface); self.background.buffer = try spb_manager.createU32RgbaBuffer(0, 0, 0, 0xffffffff); - self.layer_surface = try layer_shell.getLayerSurface(self.background.surface, monitor.output, .top, "levee"); + self.layer_surface = try layer_shell.getLayerSurface(self.background.surface, monitor.output, .top, "stevee"); self.tags = try Widget.init(self.background.surface); self.clock = try Widget.init(self.background.surface); diff --git a/src/Buffer.zig b/src/Buffer.zig @@ -25,7 +25,7 @@ pub fn resize(self: *Buffer, shm: *wl.Shm, width: u31, height: u31) !void { self.width = width; self.height = height; - const fd = try posix.memfd_create("levee-shm", linux.MFD.CLOEXEC); + const fd = try posix.memfd_create("stevee-shm", linux.MFD.CLOEXEC); defer posix.close(fd); const stride = width * 4; diff --git a/src/modules/Pulse.zig b/src/modules/Pulse.zig @@ -36,7 +36,7 @@ pub fn init() !Pulse { return error.InitFailed; }; const api = pulse.pa_threaded_mainloop_get_api(mainloop); - const context = pulse.pa_context_new(api, "levee") orelse { + const context = pulse.pa_context_new(api, "stevee") orelse { return error.InitFailed; }; const connected = pulse.pa_context_connect(context, null, pulse.PA_CONTEXT_NOFAIL, null);