Skip to content

Commit 0e003cb

Browse files
author
viable
committed
add distro, wm. modularity refractor
1 parent b8c9ede commit 0e003cb

File tree

12 files changed

+808
-275
lines changed

12 files changed

+808
-275
lines changed

src/config.zig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const default_config =
2828
\\# {uptime} - System uptime
2929
\\# {pkgs} - Package count
3030
\\# {session} - Wayland/X11
31+
\\# {wm} - Window manager
32+
\\# {distro} - Linux distribution
3133
\\#
3234
\\# Colors and Styles:
3335
\\# Basic colors: {red}text{/red}, {green}text{/green}, etc.
@@ -40,7 +42,7 @@ const default_config =
4042
\\
4143
\\format = {bold}{cyan}{user}@{host}{/cyan}{/bold} since: {uptime}
4244
\\{green}{shell}{/green} on {yellow}{term}{/yellow}
43-
\\{magenta}{pkgs}{/magenta} pkgs on {blue}{session}{/blue}
45+
\\{magenta}{pkgs}{/magenta} pkgs on {blue}{distro} / {blue}{wm} / {blue}{session}{/blue}
4446
\\
4547
;
4648

@@ -52,6 +54,8 @@ pub const Placeholder = enum {
5254
uptime,
5355
pkgs,
5456
session,
57+
distro,
58+
wm,
5559

5660
pub fn symbol(self: Placeholder) []const u8 {
5761
return switch (self) {
@@ -62,6 +66,8 @@ pub const Placeholder = enum {
6266
.uptime => "{uptime}",
6367
.pkgs => "{pkgs}",
6468
.session => "{session}",
69+
.distro => "{distro}",
70+
.wm => "{wm}",
6571
};
6672
}
6773
};

src/fetch.zig

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)