tony / oxwm

Added version to main.zig. Browse files
tonybanters committed 2026-02-16 parent 783e466 commit 2870f1eb38076ee9157707d37c397ec5cafb89fc
Showing 1 changed file with 2 additions and 1 deletions. UnifiedSplit
+2 −1 src/main.zig
@@ -1,4 +1,5 @@
1 const std = @import("std"); 1 const std = @import("std");
2 +const VERSION = "v0.11.0";
2 const display_mod = @import("x11/display.zig"); 3 const display_mod = @import("x11/display.zig");
3 const events = @import("x11/events.zig"); 4 const events = @import("x11/events.zig");
4 const xlib = @import("x11/xlib.zig"); 5 const xlib = @import("x11/xlib.zig");
@@ -161,7 +162,7 @@ pub fn main() !void {
161 print_help(); 162 print_help();
162 return; 163 return;
163 } else if (std.mem.eql(u8, arg, "-v") or std.mem.eql(u8, arg, "--version")) { 164 } else if (std.mem.eql(u8, arg, "-v") or std.mem.eql(u8, arg, "--version")) {
164 - std.debug.print("oxwm 0.1.0\n", .{}); 165 + std.debug.print(VERSION, .{});
165 return; 166 return;
166 } else if (std.mem.eql(u8, arg, "--init")) { 167 } else if (std.mem.eql(u8, arg, "--init")) {
167 init_config(allocator); 168 init_config(allocator);