tony / oxwm

treewide: rename type aliases to be title case Browse files
emzywastaken committed 2026-02-23 parent 97db045 commit abe5493d4660d485c1a138c3671ce32fe837018f
Showing 2 changed files with 7 additions and 7 deletions. UnifiedSplit
+6 −6 src/bar/blocks/blocks.zig
@@ -1,11 +1,11 @@
1 const std = @import("std"); 1 const std = @import("std");
2 2
3 pub const Static = @import("static.zig").Static; 3 pub const Static = @import("static.zig").Static;
4 -pub const Date_Time = @import("datetime.zig").DateTime; 4 +pub const DateTime = @import("datetime.zig").DateTime;
5 pub const Ram = @import("ram.zig").Ram; 5 pub const Ram = @import("ram.zig").Ram;
6 pub const Shell = @import("shell.zig").Shell; 6 pub const Shell = @import("shell.zig").Shell;
7 pub const Battery = @import("battery.zig").Battery; 7 pub const Battery = @import("battery.zig").Battery;
8 -pub const Cpu_Temp = @import("cpu_temp.zig").CpuTemp; 8 +pub const CpuTemp = @import("cpu_temp.zig").CpuTemp;
9 9
10 pub const Block = struct { 10 pub const Block = struct {
11 data: Data, 11 data: Data,
@@ -16,11 +16,11 @@ pub const Block = struct {
16 16
17 pub const Data = union(enum) { 17 pub const Data = union(enum) {
18 static: Static, 18 static: Static,
19 - datetime: Date_Time, 19 + datetime: DateTime,
20 ram: Ram, 20 ram: Ram,
21 shell: Shell, 21 shell: Shell,
22 battery: Battery, 22 battery: Battery,
23 - cpu_temp: Cpu_Temp, 23 + cpu_temp: CpuTemp,
24 }; 24 };
25 25
26 pub fn initStatic(text: []const u8, col: c_ulong, ul: bool) Block { 26 pub fn initStatic(text: []const u8, col: c_ulong, ul: bool) Block {
@@ -38,7 +38,7 @@ pub const Block = struct {
38 38
39 pub fn initDatetime(format: []const u8, datetime_format: []const u8, interval_secs: u64, col: c_ulong, ul: bool) Block { 39 pub fn initDatetime(format: []const u8, datetime_format: []const u8, interval_secs: u64, col: c_ulong, ul: bool) Block {
40 return .{ 40 return .{
41 - .data = .{ .datetime = Date_Time.init(format, datetime_format, interval_secs, col) }, 41 + .data = .{ .datetime = DateTime.init(format, datetime_format, interval_secs, col) },
42 .last_update = 0, 42 .last_update = 0,
43 .cached_content = undefined, 43 .cached_content = undefined,
44 .cached_len = 0, 44 .cached_len = 0,
@@ -92,7 +92,7 @@ pub const Block = struct {
92 ul: bool, 92 ul: bool,
93 ) Block { 93 ) Block {
94 return .{ 94 return .{
95 - .data = .{ .cpu_temp = Cpu_Temp.init(format, thermal_zone, interval_secs, col) }, 95 + .data = .{ .cpu_temp = CpuTemp.init(format, thermal_zone, interval_secs, col) },
96 .last_update = 0, 96 .last_update = 0,
97 .cached_content = undefined, 97 .cached_content = undefined,
98 .cached_len = 0, 98 .cached_len = 0,
+1 −1 src/config/lua.zig
@@ -5,7 +5,7 @@ const Keybind = config_mod.Keybind;
5 const Action = config_mod.Action; 5 const Action = config_mod.Action;
6 const Rule = config_mod.Rule; 6 const Rule = config_mod.Rule;
7 const Block = config_mod.Block; 7 const Block = config_mod.Block;
8 -const Block_Type = config_mod.BlockType; 8 +const BlockType = config_mod.BlockType;
9 const Mouse_Button = config_mod.MouseButton; 9 const Mouse_Button = config_mod.MouseButton;
10 const Click_Target = config_mod.ClickTarget; 10 const Click_Target = config_mod.ClickTarget;
11 const Mouse_Action = config_mod.MouseAction; 11 const Mouse_Action = config_mod.MouseAction;