Skip to content

Commit fc5c2f6

Browse files
committed
Title: adds {user-id} in custom format
1 parent 6c314e1 commit fc5c2f6

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/modules/title/title.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ bool ffPrintTitle(FFTitleOptions* options)
6464
FF_FORMAT_ARG(atColored, "at-symbol-colored"),
6565
FF_FORMAT_ARG(hostNameColored, "host-name-colored"),
6666
FF_FORMAT_ARG(instance.state.platform.fullUserName, "full-user-name"),
67+
#ifndef _WIN32
68+
FF_FORMAT_ARG(instance.state.platform.uid, "user-id"),
69+
#else
70+
FF_FORMAT_ARG(instance.state.platform.sid, "user-id"),
71+
#endif
6772
FF_FORMAT_ARG(instance.state.platform.pid, "pid"),
6873
}));
6974
}
@@ -176,7 +181,7 @@ FFModuleBaseInfo ffTitleModuleInfo = {
176181
{"@ symbol (colored)", "at-symbol-colored"},
177182
{"Host name (colored)", "host-name-colored"},
178183
{"Full user name", "full-user-name"},
179-
{"UID / SID", "user-id"},
180-
{"Fastfetch PID", "pid"},
184+
{"UID (*nix) / SID (Windows)", "user-id"},
185+
{"PID of current process", "pid"},
181186
}))
182187
};

0 commit comments

Comments
 (0)