modules/home/programs/shell/oh-my-posh.nix: lil gup
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -2,8 +2,8 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
with lib; let
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.shell.oh-my-posh;
|
cfg = config.shell.oh-my-posh;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
@ -69,7 +69,7 @@ in {
|
|||||||
style = "plain";
|
style = "plain";
|
||||||
foreground = "white";
|
foreground = "white";
|
||||||
background = "transparent";
|
background = "transparent";
|
||||||
template = "{{ if .SSHSession }} {{ .UserName }}@{{ .HostName }} {{ end }}";
|
template = "{{ if .SSHSession }} {{ .UserName }}@{{ .HostName }}{{ end }}";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
style = "plain";
|
style = "plain";
|
||||||
@ -80,7 +80,7 @@ in {
|
|||||||
charging_icon = "";
|
charging_icon = "";
|
||||||
discharging_icon = "";
|
discharging_icon = "";
|
||||||
};
|
};
|
||||||
template = "{{ if not .Error }} {{ .Icon }} {{ .Percentage }}%{{ end }}";
|
template = "{{ if not .Error }} {{ .Icon }} {{ .Percentage }}%{{ end }}";
|
||||||
type = "battery";
|
type = "battery";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user